diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-11 10:45:02 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-12-11 10:45:02 -0800 |
commit | 742d78aa41444fabc04427784881b5dc2865a3d6 (patch) | |
tree | 902bc00c5d4f3b55afe4ffcc70e18c4899828224 /libfscrypt | |
parent | 742a1bc8dba58be3593fbf161794fc2b87e6d53b (diff) | |
download | extras-742d78aa41444fabc04427784881b5dc2865a3d6.tar.gz |
Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I94c2456e8ef958abcb0909871fb772dd67060dfc
Diffstat (limited to 'libfscrypt')
-rw-r--r-- | libfscrypt/fscrypt_init_extensions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfscrypt/fscrypt_init_extensions.cpp b/libfscrypt/fscrypt_init_extensions.cpp index af50a0f8..fe152104 100644 --- a/libfscrypt/fscrypt_init_extensions.cpp +++ b/libfscrypt/fscrypt_init_extensions.cpp @@ -90,7 +90,7 @@ int fscrypt_set_directory_policy(const char* dir) "apex", }; std::string prefix = "/data/"; - for (auto d: directories_to_exclude) { + for (const auto& d: directories_to_exclude) { if ((prefix + d) == dir) { LOG(INFO) << "Not setting policy on " << dir; return 0; |