summaryrefslogtreecommitdiffstats
path: root/aidl.h
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-07-27 11:42:51 -0700
committerChih-Hung Hsieh <chh@google.com>2016-07-27 11:48:17 -0700
commitf05cc26630828c848e46ea0e584dbdd2541ea723 (patch)
tree448927ca7b53cc8115ffa8ef74d838f5f0a5795c /aidl.h
parent3b2203ddadae8b44ebe14a882274707ba58bc9c3 (diff)
downloadandroid_system_tools_aidl-f05cc26630828c848e46ea0e584dbdd2541ea723.tar.gz
android_system_tools_aidl-f05cc26630828c848e46ea0e584dbdd2541ea723.tar.bz2
android_system_tools_aidl-f05cc26630828c848e46ea0e584dbdd2541ea723.zip
Fix clang-tidy performance warnings.
* Use const reference type for parameters, local variables, and for-loop index variables to avoid unnecessary copy. Bug: 30407689 Bug: 30413223 Bug: 30413862 Change-Id: Ia09c58becfa3980faed24aa7eddeb520207ca259 Test: build with WITH_TIDY=1
Diffstat (limited to 'aidl.h')
-rw-r--r--aidl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/aidl.h b/aidl.h
index dffdf14..2e5b0ee 100644
--- a/aidl.h
+++ b/aidl.h
@@ -55,8 +55,8 @@ bool preprocess_aidl(const JavaOptions& options,
namespace internals {
AidlError load_and_validate_aidl(
- const std::vector<std::string> preprocessed_files,
- const std::vector<std::string> import_paths,
+ const std::vector<std::string>& preprocessed_files,
+ const std::vector<std::string>& import_paths,
const std::string& input_file_name,
const IoDelegate& io_delegate,
TypeNamespace* types,