]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: Remove pessimizing moves
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 28 Feb 2019 17:03:07 +0000 (12:03 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 15 Mar 2019 18:52:47 +0000 (14:52 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_swift_auth.cc
src/rgw/services/svc_sys_obj_core.cc

index 36248cf492afd4abf31cd4bf8b0b71e2f8cec872..0f5bdd0274707431029291bb30824e27f5504a8a 100644 (file)
@@ -128,7 +128,7 @@ std::string TempURLEngine::convert_from_iso8601(std::string expires) const
    * for the HMAC calculations. We need to make the conversion. */
   struct tm date_t;
   if (!parse_iso8601(expires.c_str(), &date_t, nullptr, true)) {
-    return std::move(expires);
+    return expires;
   } else {
     return std::to_string(internal_timegm(&date_t));
   }
index ead6aebd1909e9b867bb6f6a998b6c07d7a9a481..c40e0abcb6210dcdbfc2bb370a1621a3ed21177e 100644 (file)
@@ -37,7 +37,7 @@ int RGWSI_SysObj_Core::get_rados_obj(RGWSI_Zone *zone_svc,
     return -EINVAL;
   }
 
-  *pobj = std::move(rados_svc->obj(obj));
+  *pobj = rados_svc->obj(obj);
   int r = pobj->open();
   if (r < 0) {
     return r;