From 6f85287419dedcdff09bd374f4fcb19e414e163a Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 16:25:49 +0100 Subject: [PATCH] rgw/rgw_multi_del.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_multi_del.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_multi_del.cc b/src/rgw/rgw_multi_del.cc index fb7a4a8a2e27..502212f06918 100644 --- a/src/rgw/rgw_multi_del.cc +++ b/src/rgw/rgw_multi_del.cc @@ -14,7 +14,7 @@ using namespace std; bool RGWMultiDelObject::xml_end(const char *el) { - RGWMultiDelKey *key_obj = (RGWMultiDelKey *)find_first("Key"); + RGWMultiDelKey *key_obj = static_cast(find_first("Key")); if (!key_obj) return false; @@ -29,18 +29,18 @@ bool RGWMultiDelObject::xml_end(const char *el) } bool RGWMultiDelDelete::xml_end(const char *el) { - RGWMultiDelQuiet *quiet_set = (RGWMultiDelQuiet *)find_first("Quiet"); + RGWMultiDelQuiet *quiet_set = static_cast(find_first("Quiet")); if (quiet_set) { string quiet_val = quiet_set->get_data(); quiet = (strcasecmp(quiet_val.c_str(), "true") == 0); } XMLObjIter iter = find("Object"); - RGWMultiDelObject *object = (RGWMultiDelObject *)iter.get_next(); + RGWMultiDelObject *object = static_cast(iter.get_next()); while (object) { string key = object->get_key(); objects.push_back(key); - object = (RGWMultiDelObject *)iter.get_next(); + object = static_cast(iter.get_next()); } return true; } -- 2.47.3