From 76c172397ac086028c3822d051dba92e4112b8c7 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 18:03:45 +0100 Subject: [PATCH] KeyValueStore: use !empty() instead of size() Signed-off-by: Danny Al-Gaaf --- src/os/KeyValueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 2d7bd3fd0f523..56ce53272cb5b 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); } -- 2.39.5