From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 15:25:49 +0000 (+0100) Subject: rgw/rgw_multi_del.cc: use static_cast instead of C-Style cast X-Git-Tag: v0.60~106^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f85287419dedcdff09bd374f4fcb19e414e163a;p=ceph.git rgw/rgw_multi_del.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- 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; }