]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw/cls_rgw.cc: use empty() instead of checking for size() == 0
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 12:39:33 +0000 (14:39 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 12:39:33 +0000 (14:39 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/cls/rgw/cls_rgw.cc

index d3f9d756fbf1cc288c7987bb5fa81e0944e76fb6..4361608e2713c738f090836d1949a0ea8209287b 100644 (file)
@@ -985,7 +985,7 @@ static int rgw_bi_log_trim(cls_method_context_t hctx, bufferlist *in, bufferlist
   if (ret < 0)
     return ret;
 
-  if (entries.size() == 0)
+  if (entries.empty())
     return -ENODATA;
 
   list<rgw_bi_log_entry>::iterator iter;