aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/index/diskindexcleaner_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/index/diskindexcleaner_test.cpp b/searchcore/src/tests/proton/index/diskindexcleaner_test.cpp
index c2ac107ad42..7ad6d40a30e 100644
--- a/searchcore/src/tests/proton/index/diskindexcleaner_test.cpp
+++ b/searchcore/src/tests/proton/index/diskindexcleaner_test.cpp
@@ -64,7 +64,7 @@ void createIndex(const string &name) {
vector<string> readIndexes() {
vector<string> indexes;
std::filesystem::directory_iterator dir_scan(index_dir);
- for (auto entry : dir_scan) {
+ for (auto& entry : dir_scan) {
if (entry.is_directory() && entry.path().filename().string().find("index.") == 0) {
indexes.push_back(entry.path().filename().string());
}