From 6b3fac2945ffe078a30cbab684d6556ff643a1ab Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 17 Sep 2018 15:12:02 -0700 Subject: [PATCH] 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 --- tools/incident_section_gen/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index 3689a8f2981e6..4b5677a75b70d 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -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());