]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rest_s3.cc: use static_cast instead of c-style
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 21 Feb 2017 15:24:26 +0000 (16:24 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Apr 2017 15:34:17 +0000 (23:34 +0800)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rest_s3.cc

index 7fd3c6a951844da979884a8e6aeb065c0feb814d..96a9c01589722dae9f9d1e4086472015d1f5ba6f 100644 (file)
@@ -4032,7 +4032,7 @@ int RGWHandler_REST_S3Website::serve_errordoc(int http_ret, const string& errord
   int ret = 0;
   s->formatter->reset(); /* Try to throw it all away */
 
-  std::shared_ptr<RGWGetObj_ObjStore_S3Website> getop( (RGWGetObj_ObjStore_S3Website*) op_get() );
+  std::shared_ptr<RGWGetObj_ObjStore_S3Website> getop( static_cast<RGWGetObj_ObjStore_S3Website*>(op_get()));
   if (getop.get() == NULL) {
     return -1; // Trigger double error handler
   }