summaryrefslogtreecommitdiff
path: root/tools/aapt2/dump/DumpManifest.cpp
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-12 00:53:37 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-12 00:53:37 +0000
commit0b49886dca66d48c4fdf60fdb4beb2c7b51d10ea (patch)
treec8da669a4aa38149165b1b6976f1ed5b5fb56e09 /tools/aapt2/dump/DumpManifest.cpp
parent5040954f68b17f34ba90ecc427f1b9d2aefb1b96 (diff)
parent40ef6319ca56bda8f1b4719b4e8a1f8ae24e229f (diff)
Merge "Fix clang-tidy performance-faster-string-find warnings" am: 57fb318ca3 am: 7c0f0d3cec am: 40ef6319ca
Change-Id: Id9d31a0c5cf41a0bb4a58326faa79511a1d8cc4a
Diffstat (limited to 'tools/aapt2/dump/DumpManifest.cpp')
-rw-r--r--tools/aapt2/dump/DumpManifest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/dump/DumpManifest.cpp b/tools/aapt2/dump/DumpManifest.cpp
index 31aa2494052c..e7a82034c77a 100644
--- a/tools/aapt2/dump/DumpManifest.cpp
+++ b/tools/aapt2/dump/DumpManifest.cpp
@@ -1188,7 +1188,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) {
@@ -2138,7 +2138,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);
}