From: Danny Al-Gaaf Date: Fri, 12 Jul 2013 10:08:52 +0000 (+0200) Subject: rgw/rgw_rados.cc: use empty() instead of checking for size() > 0 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e146934ea488219075209816ee96dd16b6d89da2;p=ceph.git rgw/rgw_rados.cc: use empty() instead of checking for size() > 0 Signed-off-by: Danny Al-Gaaf (cherry picked from commit 22e0dbbd0e6b6a0fc3b49018d0a5d91ce54aca1b) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 39db566f9953..f06a4e1b3329 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2669,8 +2669,7 @@ int RGWRados::get_obj(void *ctx, void **handle, rgw_obj& obj, else len = end - ofs + 1; - if (astate->has_manifest && - astate->manifest.objs.size() > 0) { + if (astate->has_manifest && !astate->manifest.objs.empty()) { /* now get the relevant object part */ map::iterator iter = astate->manifest.objs.upper_bound(ofs); /* we're now pointing at the next part (unless the first part starts at a higher ofs),