From: Danny Al-Gaaf Date: Tue, 7 May 2013 14:59:18 +0000 (+0200) Subject: rgw/rgw_op.cc: use empty() instead of size() X-Git-Tag: v0.63~46^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cdfc4a7ea9859702472c73fb9eb9d101922e43c6;p=ceph.git rgw/rgw_op.cc: use empty() instead of size() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 37d9c3b0758a..0ba0dc3fb832 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -701,7 +701,7 @@ void RGWListBuckets::execute() done = (m.size() < read_count || (limit > 0 && total_count == limit)); - if (m.size()) { + if (!m.empty()) { send_response_data(buckets); map::reverse_iterator riter = m.rbegin();