Merge pull request #4074 from pherl/mapat

Replace C++11 only method std::map::at
This commit is contained in:
Jisi Liu 2017-12-19 14:41:13 -08:00 committed by GitHub
commit eff55ece08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}