diff options
| author | paxakor <[email protected]> | 2022-02-10 16:47:32 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:32 +0300 | 
| commit | 40d35c046ee3a61ee2a581f42499c5ce56ac589a (patch) | |
| tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /contrib/libs/protoc/src/google/protobuf/compiler/parser.cc | |
| parent | 7fdbed62e54b804e2c12b86a2c2bab12f61065df (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/protoc/src/google/protobuf/compiler/parser.cc')
| -rw-r--r-- | contrib/libs/protoc/src/google/protobuf/compiler/parser.cc | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/parser.cc b/contrib/libs/protoc/src/google/protobuf/compiler/parser.cc index 6794eb48601..41d70aa255f 100644 --- a/contrib/libs/protoc/src/google/protobuf/compiler/parser.cc +++ b/contrib/libs/protoc/src/google/protobuf/compiler/parser.cc @@ -311,11 +311,11 @@ bool Parser::ConsumeNumber(double* output, const char* error) {      input_->Next();      return true;    } else if (LookingAt("inf")) { -    *output = std::numeric_limits<double>::infinity();  +    *output = std::numeric_limits<double>::infinity();      input_->Next();      return true;    } else if (LookingAt("nan")) { -    *output = std::numeric_limits<double>::quiet_NaN();  +    *output = std::numeric_limits<double>::quiet_NaN();      input_->Next();      return true;    } else { @@ -579,7 +579,7 @@ bool Parser::ValidateEnum(const EnumDescriptorProto* proto) {      return false;    } -  std::set<int> used_values;  +  std::set<int> used_values;    bool has_duplicates = false;    for (int i = 0; i < proto->value_size(); ++i) {      const EnumValueDescriptorProto& enum_value = proto->value(i); @@ -2387,7 +2387,7 @@ bool SourceLocationTable::Find(      const Message* descriptor,      DescriptorPool::ErrorCollector::ErrorLocation location, int* line,      int* column) const { -  const std::pair<int, int>* result =  +  const std::pair<int, int>* result =        FindOrNull(location_map_, std::make_pair(descriptor, location));    if (result == NULL) {      *line = -1;  | 
