From e146934ea488219075209816ee96dd16b6d89da2 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 12 Jul 2013 12:08:52 +0200 Subject: [PATCH] rgw/rgw_rados.cc: use empty() instead of checking for size() > 0 Signed-off-by: Danny Al-Gaaf (cherry picked from commit 22e0dbbd0e6b6a0fc3b49018d0a5d91ce54aca1b) --- src/rgw/rgw_rados.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 39db566f995..f06a4e1b332 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), -- 2.47.3