From: Casey Bodley Date: Tue, 7 May 2019 18:08:25 +0000 (-0400) Subject: rgw: use explicit to_string() overload for boost::string_ref X-Git-Tag: v15.1.0~2726^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=04c326795d2afe63c679f2542565763fee6acc09;p=ceph-ci.git rgw: use explicit to_string() overload for boost::string_ref Fixes: http://tracker.ceph.com/issues/39611 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 5b58f1117a4..24211399acf 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -1528,10 +1528,10 @@ void rgw::keystone::AdminTokenRequestVer2::dump(Formatter* const f) const f->open_object_section("token_request"); f->open_object_section("auth"); f->open_object_section("passwordCredentials"); - encode_json("username", to_string(conf.get_admin_user()), f); + encode_json("username", ::to_string(conf.get_admin_user()), f); encode_json("password", ::to_string(conf.get_admin_password()), f); f->close_section(); - encode_json("tenantName", to_string(conf.get_admin_tenant()), f); + encode_json("tenantName", ::to_string(conf.get_admin_tenant()), f); f->close_section(); f->close_section(); } @@ -1547,9 +1547,9 @@ void rgw::keystone::AdminTokenRequestVer3::dump(Formatter* const f) const f->open_object_section("password"); f->open_object_section("user"); f->open_object_section("domain"); - encode_json("name", to_string(conf.get_admin_domain()), f); + encode_json("name", ::to_string(conf.get_admin_domain()), f); f->close_section(); - encode_json("name", to_string(conf.get_admin_user()), f); + encode_json("name", ::to_string(conf.get_admin_user()), f); encode_json("password", ::to_string(conf.get_admin_password()), f); f->close_section(); f->close_section(); @@ -1557,12 +1557,12 @@ void rgw::keystone::AdminTokenRequestVer3::dump(Formatter* const f) const f->open_object_section("scope"); f->open_object_section("project"); if (! conf.get_admin_project().empty()) { - encode_json("name", to_string(conf.get_admin_project()), f); + encode_json("name", ::to_string(conf.get_admin_project()), f); } else { - encode_json("name", to_string(conf.get_admin_tenant()), f); + encode_json("name", ::to_string(conf.get_admin_tenant()), f); } f->open_object_section("domain"); - encode_json("name", to_string(conf.get_admin_domain()), f); + encode_json("name", ::to_string(conf.get_admin_domain()), f); f->close_section(); f->close_section(); f->close_section();