From: Danny Al-Gaaf Date: Sat, 20 Jul 2013 17:51:10 +0000 (+0200) Subject: rgw/rgw_bucket.cc: use static_cast<>() instead of C-Style cast X-Git-Tag: v0.67-rc1~10^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cf29d1766656f1158df127fb8a29b868d550eb82;p=ceph.git rgw/rgw_bucket.cc: use static_cast<>() instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 7b22f44790b74..ed8c4fae78e07 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -1464,7 +1464,7 @@ public: } int list_keys_next(void *handle, int max, list& keys, bool *truncated) { - list_keys_info *info = (list_keys_info *)handle; + list_keys_info *info = static_cast(handle); string no_filter; @@ -1498,7 +1498,7 @@ public: } void list_keys_complete(void *handle) { - list_keys_info *info = (list_keys_info *)handle; + list_keys_info *info = static_cast(handle); delete info; } }; @@ -1611,7 +1611,7 @@ public: } int list_keys_next(void *handle, int max, list& keys, bool *truncated) { - list_keys_info *info = (list_keys_info *)handle; + list_keys_info *info = static_cast(handle); string no_filter; @@ -1646,7 +1646,7 @@ public: } void list_keys_complete(void *handle) { - list_keys_info *info = (list_keys_info *)handle; + list_keys_info *info = static_cast(handle); delete info; }