]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_op.cc: use static_cast instead of c-style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 22:33:00 +0000 (00:33 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 22:33:00 +0000 (00:33 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_op.cc

index 5000c6a6dd8dc15691260e0b047f313f929e014c..a4af52ccaa2e31b217dcebd5fad264c0d8ba5ad1 100644 (file)
@@ -756,7 +756,7 @@ static int iterate_user_manifest_parts(CephContext *cct, RGWRados *store, off_t
 static int get_obj_user_manifest_iterate_cb(rgw_bucket& bucket, RGWObjEnt& ent, RGWAccessControlPolicy *bucket_policy, off_t start_ofs, off_t end_ofs,
                                        void *param)
 {
-  RGWGetObj *op = (RGWGetObj *)param;
+  RGWGetObj *op = static_cast<RGWGetObj *>(param);
   return op->read_user_manifest_part(bucket, ent, bucket_policy, start_ofs, end_ofs);
 }
 
@@ -1522,7 +1522,7 @@ void RGWPutObj::pre_exec()
 static int put_obj_user_manifest_iterate_cb(rgw_bucket& bucket, RGWObjEnt& ent, RGWAccessControlPolicy *bucket_policy, off_t start_ofs, off_t end_ofs,
                                        void *param)
 {
-  RGWPutObj *op = (RGWPutObj *)param;
+  RGWPutObj *op = static_cast<RGWPutObj *>(param);
   return op->user_manifest_iterate_cb(bucket, ent, bucket_policy, start_ofs, end_ofs);
 }