]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/swift: remove redundant moves of object name 52719/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 31 Jul 2023 23:52:15 +0000 (19:52 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 31 Jul 2023 23:52:17 +0000 (19:52 -0400)
commitf8ae8d88a3f23f3c9b9ec1ce105a5beec66de48b
treed28dc980bc3680e3575d533f53e4759abc482542
parentf4a421f8ab1c7360f783a0b9bec90c3a89819a6f
rgw/swift: remove redundant moves of object name

resolves a compiler warning:

/home/cbodley/ceph/src/rgw/rgw_rest_swift.cc: In member function ‘RGWOp* RGWSwiftWebsiteHandler::get_ws_listing_op()’:
/home/cbodley/ceph/src/rgw/rgw_rest_swift.cc:2558:33: warning: redundant move in initialization [-Wredundant-move]
 2558 |   std::string prefix = std::move(s->object->get_name());
      |                        ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/home/cbodley/ceph/src/rgw/rgw_rest_swift.cc:2558:33: note: remove ‘std::move’ call

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_swift.cc