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.
const
bloom_filter.cpp
1 parent 490974e commit bcc3753Copy full SHA for bcc3753
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