Skip to content

Commit 5c09888

Browse files
committed
common: config_cacher: use set::contains() instead of count()
moved out of the main commit to facilitate backporting it to pre-C++20. Signed-off-by: Ronen Friedman <[email protected]>
1 parent 9821bf8 commit 5c09888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/config_cacher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class md_config_cacher_t : public md_config_obs_t {
4040

4141
void handle_conf_change(const ConfigProxy& conf,
4242
const std::set<std::string>& changed) override {
43-
if (changed.count(keys[0])) {
43+
if (changed.contains(keys[0])) {
4444
value_cache.store(conf.get_val<ValueT>(keys[0]));
4545
}
4646
}

0 commit comments

Comments
 (0)