0

Cleanup: Pass std::string as const reference from native_client_sdk/

Passing std::string by reference can prevent extra copying of object.

BUG=367418
TEST=
R=binji@chromium.org,noelallen@chromium.org

Review URL: https://codereview.chromium.org/1355993002

Cr-Commit-Position: refs/heads/master@{#349917}
This commit is contained in:
ki.stfu
2015-09-21 02:19:19 -07:00
committed by Commit bot
parent 523161fab4
commit 42d17b85eb

@ -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);