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

Unified Diff: native_client_sdk/src/examples/api/file_io/file_io.cc

Issue 1355993002: Cleanup: Pass std::string as const reference from native_client_sdk/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698