From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 13:55:51 +0000 (+0200) Subject: rgw/rgw_cors_s3.cc: use static_cast instead of C-Style cast X-Git-Tag: v0.62~102^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=21361708d9ad315ba0e96dabb4ca13cf36beeee0;p=ceph.git rgw/rgw_cors_s3.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_cors_s3.cc b/src/rgw/rgw_cors_s3.cc index 154d5cb70886..a4312116596e 100644 --- a/src/rgw/rgw_cors_s3.cc +++ b/src/rgw/rgw_cors_s3.cc @@ -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(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(iter.get_next())) { rules.push_back(*obj); } return true;