mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
rgw_rest_s3.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
1a4720e95a
commit
439ae679c2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user