Fix clang-tidy performance warnings in frameworks/base.
* Use more efficient overloaded string methods. Bug: 30411878 Test: build with WITH_TIDY=1 Change-Id: Ia387e61770e1e7211280ed028ef0eef6e632a1d2
This commit is contained in:
committed by
Chih-hung Hsieh
parent
f7190b65ab
commit
6b3fac2945
@@ -140,7 +140,7 @@ static void splitAndPrint(const string& args) {
|
||||
size_t base = 0;
|
||||
size_t found;
|
||||
while (true) {
|
||||
found = args.find_first_of(" ", base);
|
||||
found = args.find_first_of(' ', base);
|
||||
if (found != base) {
|
||||
string arg = args.substr(base, found - base);
|
||||
printf(" \"%s\",", arg.c_str());
|
||||
|
||||
Reference in New Issue
Block a user