diff options
author | ki.stfu <ki.stfu@gmail.com> | 2015-09-21 17:56:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-22 00:57:25 +0000 |
commit | d3709b5f91fe5d0d4accd7386da5a61743824b9e (patch) | |
tree | ffd618fc74a2588a96fc42be809f0dbf5ee0a93f /chromeos/network/shill_property_util.cc | |
parent | 15b28d658c5a66655c19a7299f2e50fcd7b591c3 (diff) | |
download | chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.zip chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.tar.gz chromium_src-d3709b5f91fe5d0d4accd7386da5a61743824b9e.tar.bz2 |
Cleanup: Pass std::string as const reference from chromeos/
Passing std::string by reference can prevent extra copying of object.
BUG=367418
TEST=
R=zelidrag@chromium.org,derat@chromium.org,gauravsh@chromium.org
Review URL: https://codereview.chromium.org/1353323002
Cr-Commit-Position: refs/heads/master@{#350078}
Diffstat (limited to 'chromeos/network/shill_property_util.cc')
-rw-r--r-- | chromeos/network/shill_property_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromeos/network/shill_property_util.cc b/chromeos/network/shill_property_util.cc index 30a6925..c5cafc8 100644 --- a/chromeos/network/shill_property_util.cc +++ b/chromeos/network/shill_property_util.cc @@ -61,7 +61,7 @@ bool CopyStringFromDictionary(const base::DictionaryValue& source, } // namespace -void SetSSID(const std::string ssid, base::DictionaryValue* properties) { +void SetSSID(const std::string& ssid, base::DictionaryValue* properties) { std::string hex_ssid = base::HexEncode(ssid.c_str(), ssid.size()); properties->SetStringWithoutPathExpansion(shill::kWifiHexSsid, hex_ssid); } |