summaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-31 21:03:57 -0800
committerRosen Penev <rosenp@gmail.com>2020-02-01 19:49:17 -0800
commit40d04206482891d53fbf39911824f02a79ec99cc (patch)
treee2d2320580660c8342dbfeeb636bcf699fabe45b /src/storage
parentbc6eca2115d8d333eed61d23a01958926bbd7a9c (diff)
[clang-tidy] convert several loops to const auto&
Found with performance-for-range-copy Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/StorageState.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx
index b5fba35af..a93ed6f28 100644
--- a/src/storage/StorageState.cxx
+++ b/src/storage/StorageState.cxx
@@ -139,7 +139,7 @@ storage_state_get_hash(const Instance &instance)
boost::crc_32_type result;
- for (auto mount: mounts) {
+ for (const auto& mount : mounts) {
result.process_bytes(mount.c_str(), mount.length());
}