commit | bc335343da0b0364f5245ae270ffdc493e818322 | [log] [tgz] |
---|---|---|
author | Rouslan Solomakhin <rouslan@chromium.org> | Thu Jul 10 17:58:38 2014 +0000 |
committer | Fredrik Roubert <roubert@google.com> | Mon Sep 01 19:20:49 2014 +0200 |
tree | 4007c37bc6732f422ac45c4b34e2cdf1521a7708 | |
parent | 769091c77a33efa2b26bd6b0a143e9400ba59617 [diff] |
Avoid 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 Review URL: https://codereview.appspot.com/112940044