diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-07-27 11:42:51 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-07-27 11:48:17 -0700 |
commit | f05cc26630828c848e46ea0e584dbdd2541ea723 (patch) | |
tree | 448927ca7b53cc8115ffa8ef74d838f5f0a5795c /aidl.h | |
parent | 3b2203ddadae8b44ebe14a882274707ba58bc9c3 (diff) | |
download | android_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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |