]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands: std::
authorSage Weil <sage@redhat.com>
Tue, 18 Jul 2017 19:44:59 +0000 (15:44 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Jul 2017 12:58:40 +0000 (08:58 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommand.h

index 94716d6c9e925301bd8b69fe55b9e4ddfe22e7b1..e32cc5df2be24ffbc94dbdd328c1d2b953666c9d 100644 (file)
 
 #pragma once
 
+#include <string>
+#include "include/encoding.h"
+
 struct MonCommand {
-  string cmdstring;
-  string helpstring;
-  string module;
-  string req_perms;
-  string availability;
+  std::string cmdstring;
+  std::string helpstring;
+  std::string module;
+  std::string req_perms;
+  std::string availability;
   uint64_t flags;
 
   // MonCommand flags
@@ -118,7 +121,7 @@ struct MonCommand {
   }
 
   bool requires_perm(char p) const {
-    return (req_perms.find(p) != string::npos); 
+    return (req_perms.find(p) != std::string::npos);
   }
 };
 WRITE_CLASS_ENCODER(MonCommand)