From: Adam C. Emerson Date: Tue, 8 May 2018 23:43:33 +0000 (-0400) Subject: rgw: Remove extra 'const' from cast X-Git-Tag: v13.2.0~37^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65a183fadd021cd80323c87e47bfdf1cc128d5fd;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 (cherry picked from commit 46b40274d42e54bf80adb0086b02e9785e0646db) --- diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index d32f1b6734e0..f341f87281cf 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:");