summaryrefslogtreecommitdiff
path: root/tools/incident_section_gen/main.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-17 15:12:02 -0700
committerChih-hung Hsieh <chh@google.com>2018-09-24 16:29:26 +0000
commit6b3fac2945ffe078a30cbab684d6556ff643a1ab (patch)
tree91098b40f54ec50139b45257fc5092e12ec697f4 /tools/incident_section_gen/main.cpp
parentf7190b65ab20a153191638c8ab2527994a56872a (diff)
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
Diffstat (limited to 'tools/incident_section_gen/main.cpp')
-rw-r--r--tools/incident_section_gen/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp
index 3689a8f2981e..4b5677a75b70 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());