]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_cors_s3.cc: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 13:55:51 +0000 (15:55 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 13:55:51 +0000 (15:55 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_cors_s3.cc

index 154d5cb70886693858f1d335153dabcc61ca0a0c..a4312116596eba4363c0c4b9599b46a314ce1db4 100644 (file)
@@ -167,11 +167,11 @@ void RGWCORSConfiguration_S3::to_xml(ostream& out) {
 bool RGWCORSConfiguration_S3::xml_end(const char *el) {
   XMLObjIter iter = find("CORSRule");
   RGWCORSRule_S3 *obj;
-  if (!(obj = (RGWCORSRule_S3 *)iter.get_next())) {
+  if (!(obj = static_cast<RGWCORSRule_S3 *>(iter.get_next()))) {
     dout(0) << "CORSConfiguration should have atleast one CORSRule" << dendl;
     return false;
   }
-  for(; obj; obj = (RGWCORSRule_S3 *)iter.get_next()) {
+  for(; obj; obj = static_cast<RGWCORSRule_S3 *>(iter.get_next())) {
     rules.push_back(*obj);
   }
   return true;