Fix some bad "for (auto x : y)" usage

This commit is contained in:
Henrik Rydgård committed 2025-04-29 16:46:14 +02:00
1 parent 62e4b2852c
commit dbe6ec80a0
17 files changed
+31 -27

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ void CachingFileLoader::ShutdownCache() {
aheadThread_.join();
std::lock_guard<std::recursive_mutex> guard(blocksMutex_);
for (auto block : blocks_) {
for (const auto &block : blocks_) {
delete [] block.second.ptr;
}
blocks_.clear();