From cf29d1766656f1158df127fb8a29b868d550eb82 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 20 Jul 2013 19:51:10 +0200 Subject: [PATCH] rgw/rgw_bucket.cc: use static_cast<>() instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_bucket.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.5