From 5c098880829a7c2757c59dd21280baeaa93cd74a Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Tue, 14 Jan 2025 03:23:16 -0600 Subject: 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 --- src/common/config_cacher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config_cacher.h b/src/common/config_cacher.h index 2befb497318..f23195955a1 100644 --- a/src/common/config_cacher.h +++ b/src/common/config_cacher.h @@ -40,7 +40,7 @@ class md_config_cacher_t : public md_config_obs_t { void handle_conf_change(const ConfigProxy& conf, const std::set& changed) override { - if (changed.count(keys[0])) { + if (changed.contains(keys[0])) { value_cache.store(conf.get_val(keys[0])); } } -- cgit v1.2.3