From cf15ce9ffb312c9b35d612008ac79a0f9e21b103 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 28 Mar 2019 21:38:35 -0400 Subject: [PATCH] common: Update config_proxy.h to work without using namespace Signed-off-by: Adam C. Emerson --- src/common/config_proxy.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/config_proxy.h b/src/common/config_proxy.h index ce11a2612deb3..c587fcad60b8c 100644 --- a/src/common/config_proxy.h +++ b/src/common/config_proxy.h @@ -138,7 +138,7 @@ public: std::forward(cb), std::forward(args)...); } - void config_options(Formatter *f) const { + void config_options(ceph::Formatter *f) const { config.config_options(f); } const decltype(md_config_t::schema)& get_schema() const { @@ -152,10 +152,10 @@ public: return &found->second; } } - const Option *find_option(const string& name) const { + const Option *find_option(const std::string& name) const { return config.find_option(name); } - void diff(Formatter *f, const std::string& name=string{}) const { + void diff(ceph::Formatter *f, const std::string& name = {}) const { std::lock_guard l{lock}; return config.diff(values, f, name); } @@ -228,11 +228,11 @@ public: std::lock_guard l{lock}; config.show_config(values, out); } - void show_config(Formatter *f) { + void show_config(ceph::Formatter *f) { std::lock_guard l{lock}; config.show_config(values, f); } - void config_options(Formatter *f) { + void config_options(ceph::Formatter *f) { std::lock_guard l{lock}; config.config_options(f); } @@ -330,12 +330,12 @@ public: config.do_argv_commands(values); } void get_config_bl(uint64_t have_version, - bufferlist *bl, + ceph::buffer::list *bl, uint64_t *got_version) { std::lock_guard l{lock}; config.get_config_bl(values, have_version, bl, got_version); } - void get_defaults_bl(bufferlist *bl) { + void get_defaults_bl(ceph::buffer::list *bl) { std::lock_guard l{lock}; config.get_defaults_bl(values, bl); } -- 2.39.5