From 4a35cfdf077f4ff95803915882ad815045faa5cc Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 16:02:30 +0200 Subject: [PATCH] rgw/rgw_op.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 43415d4532422..97fd158cf9209 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; -- 2.39.5