commit | bdc48df30361f569670e4ac82c53a6a1d82050b5 | [log] [tgz] |
---|---|---|
author | Florian Mayer <fmayer@google.com> | Thu Feb 20 17:25:03 2020 +0000 |
committer | Florian Mayer <fmayer@google.com> | Thu Feb 20 17:25:03 2020 +0000 |
tree | 6a3f2c464b324a9a8e9e1964a2f9fb8f6781bc09 | |
parent | 7bb2e623e946e54095bf9bd31c0959df671c4b47 [diff] [blame] |
Use const refs instead of copying strings. Change-Id: I7513d4d8991b637c86290eb0b2e6e73caff955a4
diff --git a/test/cts/utils.cc b/test/cts/utils.cc index b11cddf..c61eff7 100644 --- a/test/cts/utils.cc +++ b/test/cts/utils.cc
@@ -124,7 +124,7 @@ }); } -void StopApp(std::string app_name) { +void StopApp(const std::string& app_name) { std::string stop_cmd = "am force-stop " + app_name; system(stop_cmd.c_str()); }