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

index 421d04c2c56d174eaa51fa5f7aef2c0747bfc9a0..ce8fde106ed8aa982474eb626d0c6644bd0ecba9 100644 (file)
@@ -24,7 +24,7 @@ public:
   friend factory;
 
   uuid_d fsid;
-  std::vector<string> cmd;
+  std::vector<std::string> cmd;
 
   MCommand()
     : MessageInstance(MSG_COMMAND) {}
@@ -35,9 +35,9 @@ public:
 private:
   ~MCommand() override {}
 
-public:  
+public:
   std::string_view get_type_name() const override { return "command"; }
-  void print(ostream& o) const override {
+  void print(std::ostream& o) const override {
     o << "command(tid " << get_tid() << ": ";
     for (unsigned i=0; i<cmd.size(); i++) {
       if (i) o << ' ';
@@ -52,6 +52,7 @@ public:
     encode(cmd, payload);
   }
   void decode_payload() override {
+    using ceph::decode;
     auto p = payload.cbegin();
     decode(fsid, p);
     decode(cmd, p);