From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 17:05:31 +0000 (+0100) Subject: KeyValueStore: prefer prefix ++operator for non-trivial iterator X-Git-Tag: v0.78~138^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0626df9072f5edd6c2346368c024a45db964f562;p=ceph.git KeyValueStore: prefer prefix ++operator for non-trivial iterator Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 56ce53272cb5..fdc88d966f78 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -2159,7 +2159,7 @@ int KeyValueStore::collection_getattrs(coll_t cid, set keys; for (map::iterator it = aset.begin(); - it != aset.end(); it++) { + it != aset.end(); ++it) { keys.insert(it->first); } @@ -2312,7 +2312,7 @@ int KeyValueStore::_destroy_collection(coll_t c, BufferTransaction &t) // All modified objects are marked deleted for (BufferTransaction::StripHeaderMap::iterator iter = t.strip_headers.begin(); - iter != t.strip_headers.end(); iter++) { + iter != t.strip_headers.end(); ++iter) { // sum the total modified object in this PG if (iter->first.first != c) continue;