diff options
author | 2020-02-12 00:39:15 +0000 | |
---|---|---|
committer | 2020-02-12 00:39:15 +0000 | |
commit | 40ef6319ca56bda8f1b4719b4e8a1f8ae24e229f (patch) | |
tree | 343c79022fb83c0f6631b5db7eab2be3dc12dcfa /tools/aapt2/dump | |
parent | 2593e104d5cf829b2aa7a715530bebd63b3dc991 (diff) | |
parent | 7c0f0d3cecc59443d2aaab079e44e9630f732eab (diff) |
Merge "Fix clang-tidy performance-faster-string-find warnings" am: 57fb318ca3 am: 7c0f0d3cec
Change-Id: I181488a9d4c5aed3f62cf497ae6d092fcf27e7f6
Diffstat (limited to 'tools/aapt2/dump')
-rw-r--r-- | tools/aapt2/dump/DumpManifest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/dump/DumpManifest.cpp b/tools/aapt2/dump/DumpManifest.cpp index 92f1ddb292e1..42a64716701d 100644 --- a/tools/aapt2/dump/DumpManifest.cpp +++ b/tools/aapt2/dump/DumpManifest.cpp @@ -1175,7 +1175,7 @@ class Activity : public ManifestExtractor::Element { } // Fully qualify the activity name - ssize_t idx = name.find("."); + ssize_t idx = name.find('.'); if (idx == 0) { name = package + name; } else if (idx < 0) { @@ -2125,7 +2125,7 @@ bool ManifestExtractor::Dump(text::Printer* printer, IDiagnostics* diag) { size_t pos = file_path.find("lib/"); if (pos != std::string::npos) { file_path = file_path.substr(pos + 4); - pos = file_path.find("/"); + pos = file_path.find('/'); if (pos != std::string::npos) { file_path = file_path.substr(0, pos); } |