]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: There is no point in const return values
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 8 May 2018 23:54:50 +0000 (19:54 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 May 2018 13:30:35 +0000 (15:30 +0200)
Pointer-to-const or reference-to-const yes. Const value, no.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 389538f356d14413bdf67d68ce2b770c4374cb3c)

src/rgw/rgw_op.cc

index c95ccf861cf81728c31b3774b9f7a7a71cd3624f..4f4be1579efea49adb221dfab49e6a4a4b0733a4 100644 (file)
@@ -6549,7 +6549,7 @@ int RGWBulkUploadOp::handle_file(const boost::string_ref path,
   RGWPutObjDataProcessor *filter = nullptr;
   boost::optional<RGWPutObj_Compress> compressor;
 
-  if (size > static_cast<const size_t>(s->cct->_conf->rgw_max_put_size)) {
+  if (size > static_cast<size_t>(s->cct->_conf->rgw_max_put_size)) {
     op_ret = -ERR_TOO_LARGE;
     return op_ret;
   }