]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.h: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:47:14 +0000 (15:47 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:47:14 +0000 (15:47 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.h

index 3ae13c8524c82f70a249fa8b8b226c625010473f..ed6f35eca72c613cb3a6f6f4f793cf27d151da00 100644 (file)
@@ -677,20 +677,20 @@ public:
     return rctx;
   }
   void destroy_context(void *ctx) {
-    delete (RGWRadosCtx *)ctx;
+    delete static_cast<RGWRadosCtx *>(ctx);
   }
   void set_atomic(void *ctx, rgw_obj& obj) {
-    RGWRadosCtx *rctx = (RGWRadosCtx *)ctx;
+    RGWRadosCtx *rctx = static_cast<RGWRadosCtx *>(ctx);
     rctx->set_atomic(obj);
   }
   void set_prefetch_data(void *ctx, rgw_obj& obj) {
-    RGWRadosCtx *rctx = (RGWRadosCtx *)ctx;
+    RGWRadosCtx *rctx = static_cast<RGWRadosCtx *>(ctx);
     rctx->set_prefetch_data(obj);
   }
   // to notify upper layer that we need to do some operation on an object, and it's up to
   // the upper layer to schedule this operation.. e.g., log intent in intent log
   void set_intent_cb(void *ctx, int (*cb)(RGWRados *store, void *user_ctx, rgw_obj& obj, RGWIntentEvent intent)) {
-    RGWRadosCtx *rctx = (RGWRadosCtx *)ctx;
+    RGWRadosCtx *rctx = static_cast<RGWRadosCtx *>(ctx);
     rctx->set_intent_cb(cb);
   }