]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: ONLY improve code formatting around RGWRESTMgr.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 12 Jul 2016 15:27:55 +0000 (17:27 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 14 Jul 2016 13:46:24 +0000 (15:46 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_rest.h
src/rgw/rgw_rest_swift.h

index 79d695d12d0610da398128319c74c16f0c0cf554..0508087fb1e1ed9d6b7f613dc6f84624d3055b2f 100644 (file)
@@ -405,19 +405,23 @@ class RGWHandler_REST_S3;
 class RGWRESTMgr {
   bool should_log;
 protected:
-  map<string, RGWRESTMgr *> resource_mgrs;
-  multimap<size_t, string> resources_by_size;
-  RGWRESTMgr *default_mgr;
+  std::map<std::string, RGWRESTMgr*> resource_mgrs;
+  std::multimap<std::size_t, std::string> resources_by_size;
+  RGWRESTMgrdefault_mgr;
 
 public:
-  RGWRESTMgr() : should_log(false), default_mgr(NULL) {}
+  RGWRESTMgr()
+    : should_log(false),
+      default_mgr(nullptr) {
+  }
   virtual ~RGWRESTMgr();
 
   void register_resource(string resource, RGWRESTMgr *mgr);
   void register_default_mgr(RGWRESTMgr *mgr);
 
-  virtual RGWRESTMgr *get_resource_mgr(struct req_state *s, const string& uri,
-                                      string *out_uri);
+  virtual RGWRESTMgr* get_resource_mgr(struct req_state *s,
+                                       const std::string& uri,
+                                       std::string* out_uri);
 
   virtual RGWRESTMgr* get_resource_mgr_as_default(struct req_state* s,
                                                   const std::string& uri,
index 249ddfe071f18c224ea2399f8e10e06e8d01bc4f..87fb557f28c9f84f7e4ac388424a2604cb46fa52 100644 (file)
@@ -261,7 +261,7 @@ public:
   RGWRESTMgr_SWIFT() {}
   virtual ~RGWRESTMgr_SWIFT() {}
 
-  virtual RGWHandler_REST *get_handler(struct req_state *s);
+  RGWHandler_REST *get_handler(struct req_state *s) override;
 
   RGWRESTMgr* get_resource_mgr_as_default(struct req_state* s,
                                           const std::string& uri,