We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11c5fde + 15e3fed commit 55f3d1dCopy full SHA for 55f3d1d
data_structures/bloom_filter.cpp
@@ -228,13 +228,13 @@ static void test_bloom_filter_string() {
228
10, {data_structures::hashDJB2, data_structures::hashStr});
229
std::vector<std::string> toCheck{"hello", "world", "!"};
230
std::vector<std::string> toFalse{"false", "world2", "!!!"};
231
- for (auto& x : toCheck) {
+ for (const auto& x : toCheck) {
232
filter.add(x);
233
}
234
- for (auto& x : toFalse) {
+ for (const auto& x : toFalse) {
235
assert(filter.contains(x) == false);
236
237
238
assert(filter.contains(x));
239
240
0 commit comments