aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-06-12 13:47:51 +0200
committerStefan Boberg <[email protected]>2023-06-12 13:47:51 +0200
commit929576f799a0a76912f1313864df8fc4800a7001 (patch)
treeb17ecc9be7b0e03cad8759905ca92a16b4ff3628
parentnarrowed scope of clang-format action (diff)
downloadzen-929576f799a0a76912f1313864df8fc4800a7001.tar.xz
zen-929576f799a0a76912f1313864df8fc4800a7001.zip
drive-by const
-rw-r--r--src/zenstore/filecas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp
index 2dd93a625..70078ecb7 100644
--- a/src/zenstore/filecas.cpp
+++ b/src/zenstore/filecas.cpp
@@ -1099,7 +1099,7 @@ FileCasStrategy::MakeIndexSnapshot()
Entries.resize(m_Index.size());
uint64_t EntryIndex = 0;
- for (auto& Entry : m_Index)
+ for (const auto& Entry : m_Index)
{
FileCasIndexEntry& IndexEntry = Entries[EntryIndex++];
IndexEntry.Key = Entry.first;