Skip to content

Commit 55f3d1d

Browse files
Merge branch 'master' into cstdint
2 parents 11c5fde + 15e3fed commit 55f3d1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/bloom_filter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ static void test_bloom_filter_string() {
228228
10, {data_structures::hashDJB2, data_structures::hashStr});
229229
std::vector<std::string> toCheck{"hello", "world", "!"};
230230
std::vector<std::string> toFalse{"false", "world2", "!!!"};
231-
for (auto& x : toCheck) {
231+
for (const auto& x : toCheck) {
232232
filter.add(x);
233233
}
234-
for (auto& x : toFalse) {
234+
for (const auto& x : toFalse) {
235235
assert(filter.contains(x) == false);
236236
}
237-
for (auto& x : toCheck) {
237+
for (const auto& x : toCheck) {
238238
assert(filter.contains(x));
239239
}
240240
}

0 commit comments

Comments
 (0)