From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 17:03:45 +0000 (+0100) Subject: KeyValueStore: use !empty() instead of size() X-Git-Tag: v0.78~138^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76c172397ac086028c3822d051dba92e4112b8c7;p=ceph.git KeyValueStore: use !empty() instead of size() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 2d7bd3fd0f52..56ce53272cb5 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -2621,7 +2621,7 @@ int KeyValueStore::omap_get_header(coll_t c, const ghobject_t &hoid, return r; } - if (got.size()) { + if (!got.empty()) { assert(got.size() == 1); bl->swap(got.begin()->second); }