]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages: Update MGetConfig.h to work without using namespace
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 00:53:29 +0000 (20:53 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 14:30:36 +0000 (10:30 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/messages/MGetConfig.h

index 0e548576f79b61f62c5e6bfe45689072edcf4ef9..aa8429fc74b237d4ab05d16d220391eb99742aee 100644 (file)
@@ -13,11 +13,11 @@ public:
   static constexpr int COMPAT_VERSION = 1;
 
   EntityName name;  ///< e.g., mon.a, client.foo
-  string host;      ///< our hostname
-  string device_class;
+  std::string host;      ///< our hostname
+  std::string device_class;
 
   MGetConfig() : MessageInstance(MSG_GET_CONFIG, HEAD_VERSION, COMPAT_VERSION) { }
-  MGetConfig(const EntityName& n, const string& h)
+  MGetConfig(const EntityName& n, const std::string& h)
     : MessageInstance(MSG_GET_CONFIG, HEAD_VERSION, COMPAT_VERSION),
       name(n),
       host(h) {}
@@ -25,7 +25,7 @@ public:
   std::string_view get_type_name() const override {
     return "get_config";
   }
-  void print(ostream& o) const override {
+  void print(std::ostream& o) const override {
     o << "get_config(" << name << "@" << host;
     if (device_class.size()) {
       o << " device_class " << device_class;