diff options
author | Max Kellermann <max.kellermann@ionos.com> | 2024-10-04 14:24:21 +0200 |
---|---|---|
committer | Max Kellermann <max.kellermann@ionos.com> | 2024-10-09 22:40:33 +0200 |
commit | 1e391415a6e3987ff9c81c693685a75a5e445f88 (patch) | |
tree | 72846c8adafaadbf5c98df15f4e4ed40ce56e6ec /src | |
parent | common/HeartbeatMap: pass name as rvalue reference (diff) | |
download | ceph-1e391415a6e3987ff9c81c693685a75a5e445f88.tar.xz ceph-1e391415a6e3987ff9c81c693685a75a5e445f88.zip |
common/config: use emplace_back() instead of push_back()
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/config.cc b/src/common/config.cc index e151e94bb90..9083c3a66ba 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -132,8 +132,8 @@ md_config_t::md_config_t(ConfigValues& values, subsys_options.reserve(values.subsys.get_num()); for (unsigned i = 0; i < values.subsys.get_num(); ++i) { string name = string("debug_") + values.subsys.get_name(i); - subsys_options.push_back( - Option(name, Option::TYPE_STR, Option::LEVEL_ADVANCED)); + subsys_options.emplace_back( + name, Option::TYPE_STR, Option::LEVEL_ADVANCED); Option& opt = subsys_options.back(); opt.set_default(stringify(values.subsys.get_log_level(i)) + "/" + stringify(values.subsys.get_gather_level(i))); |