commit | a690281b4838171d8391e0804e3354a857fb28e1 | [log] [tgz] |
---|---|---|
author | ki.stfu <[email protected]> | Wed May 25 23:07:06 2016 |
committer | Commit bot <[email protected]> | Wed May 25 23:08:11 2016 |
tree | cf75f147842c251279fc98f5fb0b608927cc8bf9 | |
parent | d1a23ec7b4749dfd29903a16c7680e4bcd54d21a [diff] [blame] |
Cleanup: Pass std::string as const reference from testing/ Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= [email protected] Review-Url: https://codereview.chromium.org/2001093008 Cr-Commit-Position: refs/heads/master@{#396030}
diff --git a/testing/multiprocess_func_list.cc b/testing/multiprocess_func_list.cc index 49ae07d..f96c2b5 100644 --- a/testing/multiprocess_func_list.cc +++ b/testing/multiprocess_func_list.cc
@@ -40,7 +40,7 @@ ProcessFunctions(main_func_ptr, setup_func_ptr); } -int InvokeChildProcessTest(std::string test_name) { +int InvokeChildProcessTest(const std::string& test_name) { MultiProcessTestMap& func_lookup_table = GetMultiprocessFuncMap(); MultiProcessTestMap::iterator it = func_lookup_table.find(test_name); if (it != func_lookup_table.end()) {