summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-09-18 01:35:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-18 01:35:33 +0000
commita0ec73d9617168f1cf8a484bd0748fc84fe88f40 (patch)
treef64ccc902f8d0c22b3e8848db86ec9accd1304f6
parenta88a7d23c0db10d42e0116c7595528c774a6a476 (diff)
parentad807707bbc2b10a2aaea1c6f75ef9a0911d3539 (diff)
downloadextras-a0ec73d9617168f1cf8a484bd0748fc84fe88f40.tar.gz
Merge "Fix clang-tidy performance warnings in system/extra."
-rw-r--r--preopt2cachename/preopt2cachename.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/preopt2cachename/preopt2cachename.cpp b/preopt2cachename/preopt2cachename.cpp
index 3fb887be..40d66b14 100644
--- a/preopt2cachename/preopt2cachename.cpp
+++ b/preopt2cachename/preopt2cachename.cpp
@@ -89,7 +89,7 @@ static bool SystemBFilenameToCacheFile(const std::string& file_location,
LOG(ERROR) << "Unable to determine apk name from file name '" << file_location << "'";
return false;
}
- std::string::size_type pos = file_location.find_last_of(".");
+ std::string::size_type pos = file_location.find_last_of('.');
if (pos == std::string::npos) {
LOG(ERROR) << "Invalid file location '" << file_location << "'";
return false;