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

index afb3142b49dab933dd788284eda653f01ea66b8a..e652f24a32fbe4505ac10752b62e81dcf6b4b0ef 100644 (file)
@@ -36,9 +36,9 @@ public:
 private:
   ~MMonCommand() override {}
 
-public:  
+public:
   std::string_view get_type_name() const override { return "mon_command"; }
-  void print(ostream& o) const override {
+  void print(std::ostream& o) const override {
     o << "mon_command(";
     for (unsigned i=0; i<cmd.size(); i++) {
       if (i) o << ' ';
@@ -46,7 +46,7 @@ public:
     }
     o << " v " << version << ")";
   }
-  
+
   void encode_payload(uint64_t features) override {
     using ceph::encode;
     paxos_encode();
@@ -54,6 +54,7 @@ public:
     encode(cmd, payload);
   }
   void decode_payload() override {
+    using ceph::decode;
     auto p = payload.cbegin();
     paxos_decode(p);
     decode(fsid, p);