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-Tag: v0.67-rc1~84^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=22e0dbbd0e6b6a0fc3b49018d0a5d91ce54aca1b;p=ceph.git rgw/rgw_rados.cc: use empty() instead of checking for size() > 0 Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 3459683a8d7de..b3e297effa4be 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3884,8 +3884,7 @@ int RGWRados::get_obj(void *ctx, RGWObjVersionTracker *objv_tracker, void **hand 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),