From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 14:02:30 +0000 (+0200) Subject: rgw/rgw_op.cc: use static_cast instead of C-Style cast X-Git-Tag: v0.62~102^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a35cfdf077f4ff95803915882ad815045faa5cc;p=ceph.git rgw/rgw_op.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 43415d453242..97fd158cf920 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -1898,7 +1898,7 @@ void RGWPutCORS::execute() ret = -EINVAL; return; } - cors_config = (RGWCORSConfiguration_S3 *)parser.find_first("CORSConfiguration"); + cors_config = static_cast(parser.find_first("CORSConfiguration")); if (!cors_config) { ret = -EINVAL; return;