From 70b0382418b3760524083f1d4e8c224626b78ef8 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 e12a517178fc..6b59bf97c7fc 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2610,8 +2610,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