Coverity Fixlet: fix PASS_BY_VALUE.
CID=102146
[email protected]
BUG=
TEST=
Review URL: http://codereview.chromium.org/9004037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115255 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index 699dbc5..1578247 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -41,8 +41,10 @@
namespace {
// Extends an omaha compatible update check url |query| string. Does
// not mutate the string if it would be longer than |limit| chars.
-bool AddQueryString(std::string id, std::string version,
- size_t limit, std::string* query) {
+bool AddQueryString(const std::string& id,
+ const std::string& version,
+ size_t limit,
+ std::string* query) {
std::string additional =
base::StringPrintf("id=%s&v=%s&uc", id.c_str(), version.c_str());
additional = "x=" + net::EscapeQueryParamValue(additional, true);