]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_multi_del.cc: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 15:25:49 +0000 (16:25 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 15:25:49 +0000 (16:25 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_multi_del.cc

index fb7a4a8a2e2783d3b6eedecb35f36af605fe76d2..502212f06918014ac32341bdeb8afb985b966bae 100644 (file)
@@ -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<RGWMultiDelKey *>(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<RGWMultiDelQuiet *>(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<RGWMultiDelObject *>(iter.get_next());
   while (object) {
     string key = object->get_key();
     objects.push_back(key);
-    object = (RGWMultiDelObject *)iter.get_next();
+    object = static_cast<RGWMultiDelObject *>(iter.get_next());
   }
   return true;
 }