From: Adam C. Emerson Date: Tue, 8 May 2018 23:43:33 +0000 (-0400) Subject: rgw: Remove extra 'const' from cast X-Git-Tag: v14.0.0~162^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=46b40274d42e54bf80adb0086b02e9785e0646db;p=ceph.git rgw: Remove extra 'const' from cast Casting to pointer-to-const makes sense. Casting to a const value (even a const pointer) doesn't. Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index a659f4c144a6..06623000c703 100644 --- a/src/rgw/rgw_http_client.cc +++ b/src/rgw/rgw_http_client.cc @@ -552,7 +552,7 @@ RGWHTTPClient::~RGWHTTPClient() int RGWHTTPHeadersCollector::receive_header(void * const ptr, const size_t len) { - const boost::string_ref header_line(static_cast(ptr), len); + const boost::string_ref header_line(static_cast(ptr), len); /* We're tokening the line that way due to backward compatibility. */ const size_t sep_loc = header_line.find_first_of(" \t:");