From f2ef6579f2fe70ddca7fa3d443b3780d0264eb88 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 11 Feb 2020 14:27:11 -0800 Subject: Fix clang-tidy performance-faster-string-find warnings Bug: 30411878 Test: build with WITH_TIDY=1 Change-Id: I7fd815aa401fbcaff97b772f3ba5d6f1d2034011 --- tools/aapt2/java/ManifestClassGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/aapt2/java/ManifestClassGenerator.cpp') diff --git a/tools/aapt2/java/ManifestClassGenerator.cpp b/tools/aapt2/java/ManifestClassGenerator.cpp index 10e504ec0752..09ea03b23c9a 100644 --- a/tools/aapt2/java/ManifestClassGenerator.cpp +++ b/tools/aapt2/java/ManifestClassGenerator.cpp @@ -39,7 +39,7 @@ static Maybe ExtractJavaIdentifier(IDiagnostics* diag, const Source } // Normalize only the java identifier, leave the original value unchanged. - if (result.find("-") != std::string::npos) { + if (result.find('-') != std::string::npos) { result = JavaClassGenerator::TransformToFieldName(result); } -- cgit v1.2.3