Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9507)

Unified Diff: chrome_elf/dll_hash/dll_hash.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_elf/dll_hash/dll_hash.cc
diff --git a/chrome_elf/dll_hash/dll_hash.cc b/chrome_elf/dll_hash/dll_hash.cc
index ecd1491f64f0903d5f171752672bd06605554079..d98c49d821e6b672aeae4e421a48b856e115031b 100644
--- a/chrome_elf/dll_hash/dll_hash.cc
+++ b/chrome_elf/dll_hash/dll_hash.cc
@@ -5,7 +5,7 @@
#include "base/hash.h"
#include "chrome_elf/dll_hash/dll_hash.h"
-int DllNameToHash(std::string dll_name) {
+int DllNameToHash(const std::string& dll_name) {
uint32 data = base::Hash(dll_name);
// Strip off the signed bit because UMA doesn't support negative values,

Powered by Google App Engine
This is Rietveld 408576698