summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-14 21:31:55 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-16 17:05:54 +0200
commitc484150b441a701ebb6d9dfb7c7a199fd8889038 (patch)
treee7e7e68ce93a503a22093523647c38bbd51f3163
parentcc49d3fed09de59c3702580e2221464d2db61dd9 (diff)
downloadceph-c484150b441a701ebb6d9dfb7c7a199fd8889038.tar.gz
rgw/rgw_rados.cc: use static_cast instead of C-Style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/rgw/rgw_rados.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc
index b3e297effa4..5a5a6a6d7f2 100644
--- a/src/rgw/rgw_rados.cc
+++ b/src/rgw/rgw_rados.cc
@@ -5632,7 +5632,7 @@ int RGWStateLog::list_entries(void *handle, int max_entries,
list<cls_statelog_entry>& entries,
bool *done)
{
- list_state *state = (list_state *)handle;
+ list_state *state = static_cast<list_state *>(handle);
librados::IoCtx ioctx;
int r = open_ioctx(ioctx);
@@ -5680,7 +5680,7 @@ int RGWStateLog::list_entries(void *handle, int max_entries,
void RGWStateLog::finish_list_entries(void *handle)
{
- list_state *state = (list_state *)handle;
+ list_state *state = static_cast<list_state *>(handle);
delete state;
}