]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages: Update MMonGetVersion.h to work without using namespace
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 00:50:39 +0000 (20:50 -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/MMonGetVersion.h

index 84a88d26d60882bf29d568174493ae840aa018c0..8768f47156bee99c199ddb41537bc5c2316d3a0d 100644 (file)
@@ -35,7 +35,7 @@ public:
     return "mon_get_version";
   }
 
-  void print(ostream& o) const override {
+  void print(std::ostream& o) const override {
     o << "mon_get_version(what=" << what << " handle=" << handle << ")";
   }
 
@@ -47,12 +47,13 @@ public:
 
   void decode_payload() override {
     auto p = payload.cbegin();
+    using ceph::decode;
     decode(handle, p);
     decode(what, p);
   }
 
   ceph_tid_t handle = 0;
-  string what;
+  std::string what;
 
 private:
   ~MMonGetVersion() override {}