]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix pessimizing move
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 17 Jun 2019 17:50:57 +0000 (13:50 -0400)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 03:41:16 +0000 (11:41 +0800)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_crypt.cc

index da283913b9b72b081fa071b6306d4a6b90857fcc..72a646b304e0788b92daff67a710e21503ad9441 100644 (file)
@@ -446,7 +446,7 @@ std::unique_ptr<BlockCrypt> AES_256_CBC_create(CephContext* cct, const uint8_t*
 {
   auto cbc = std::unique_ptr<AES_256_CBC>(new AES_256_CBC(cct));
   cbc->set_key(key, AES_256_KEYSIZE);
-  return std::move(cbc);
+  return cbc;
 }