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

index 43415d453242251bc02a4c753dc535e1fc89c1b9..97fd158cf92097b81be2b001b17491bf8f1f0927 100644 (file)
@@ -1898,7 +1898,7 @@ void RGWPutCORS::execute()
     ret = -EINVAL;
     return;
   }
-  cors_config = (RGWCORSConfiguration_S3 *)parser.find_first("CORSConfiguration");
+  cors_config = static_cast<RGWCORSConfiguration_S3 *>(parser.find_first("CORSConfiguration"));
   if (!cors_config) {
     ret = -EINVAL;
     return;