]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rest_swift.cc: use empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 23 Oct 2014 17:54:02 +0000 (19:54 +0200)
committerSage Weil <sage@redhat.com>
Mon, 27 Oct 2014 19:44:25 +0000 (12:44 -0700)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rest_swift.cc

index e1cfedf6d46b4c79efe9b2284e7e0a8a3c5c8338..49a18bab5fbc7401fab1ba70cce5c5e59bf1cad4 100644 (file)
@@ -463,7 +463,7 @@ int RGWSetTempUrl_ObjStore_SWIFT::get_params()
     temp_url_keys[1] = temp_url;
   }
 
-  if (temp_url_keys.size() == 0)
+  if (temp_url_keys.empty())
     return -EINVAL;
 
   return 0;