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

Unified Diff: native_client_sdk/src/examples/api/file_io/file_io.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: native_client_sdk/src/examples/api/file_io/file_io.cc
diff --git a/native_client_sdk/src/examples/api/file_io/file_io.cc b/native_client_sdk/src/examples/api/file_io/file_io.cc
index 2f3eaaeff1d38012e90857816aca5c62816c0dbc..01a06ff3071f2b535e05d5b3335bb217e3c7e7c0 100644
--- a/native_client_sdk/src/examples/api/file_io/file_io.cc
+++ b/native_client_sdk/src/examples/api/file_io/file_io.cc
@@ -100,7 +100,7 @@ class FileIoInstance : public pp::Instance {
PostArrayMessage(command, StringVector());
}
- void PostArrayMessage(const char* command, std::string s) {
+ void PostArrayMessage(const char* command, const std::string& s) {
StringVector sv;
sv.push_back(s);
PostArrayMessage(command, sv);

Powered by Google App Engine
This is Rietveld 408576698