DescriptionAvoid string copying in json.cc.
The following two methods:
bool Json::HasStringValueForKey(const std::string& key) const;
std::string Json::GetStringValueForKey(const std::string& key) const;
have been replaced with a single method:
bool Json::GetStringValueForKey(const std::string& key,
std::string* value) const;
to avoid copying possibly large strings.
BUG=8
R=roubert@google.com
Committed: https://code.google.com/p/libaddressinput/source/detail?r=303
Patch Set 1 #
Total comments: 1
MessagesTotal messages: 4
|