소스 검색

Merge pull request #4074 from pherl/mapat

Replace C++11 only method std::map::at
Jisi Liu 7 년 전
부모
커밋
eff55ece08
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/util/field_mask_util.cc

+ 1 - 1
src/google/protobuf/util/field_mask_util.cc

@@ -374,7 +374,7 @@ void FieldMaskTree::RemovePath(const string& path,
       }
     }
     if (ContainsKey(node->children, parts[i])) {
-      node = node->children.at(parts[i]);
+      node = node->children[parts[i]];
       if (field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
         current_descriptor = field_descriptor->message_type();
       }