summaryrefslogtreecommitdiff
path: root/tools/aapt/FileFinder.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-08-10 14:15:30 -0700
committerChih-Hung Hsieh <chh@google.com>2016-08-11 15:16:41 -0700
commit9b8528fee4eed35b8e887ded0851d08eb2b10db6 (patch)
tree36df1cee89b3689454e6b09a6bfa5eabfb3214b1 /tools/aapt/FileFinder.cpp
parent7310353aeb771c109e5aea2c5415fa502eb13a7b (diff)
Fix clang-tidy warnings in aapt and aapt2.
* Add explicit keyword to conversion constructors. * Add NOLINT(implicit) comments for implicit conversion constructors. Bug: 28341362 * Use const reference type for read-only parameters. Bug: 30407689 * Use const reference type to avoid unnecessary copy. Bug: 30413862 Test: build with WITH_TIDY=1 Change-Id: Id6d21961f313a1ad92b15a37fdaa5be9e8ab48e1
Diffstat (limited to 'tools/aapt/FileFinder.cpp')
-rw-r--r--tools/aapt/FileFinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/FileFinder.cpp b/tools/aapt/FileFinder.cpp
index 18775c06863f..c9d0744a4463 100644
--- a/tools/aapt/FileFinder.cpp
+++ b/tools/aapt/FileFinder.cpp
@@ -77,7 +77,7 @@ bool SystemFileFinder::findFiles(String8 basePath, Vector<String8>& extensions,
return true;
}
-void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats,
+void SystemFileFinder::checkAndAddFile(const String8& path, const struct stat* stats,
Vector<String8>& extensions,
KeyedVector<String8,time_t>& fileStore)
{