From: Danny Al-Gaaf Date: Wed, 7 Jan 2015 11:51:16 +0000 (+0100) Subject: ObjectStore.h: prefer ++operator for non-primitive iterators X-Git-Tag: suse_latest~36^2~9^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=46e81d36141f23c8584a53345a560d6573662ecc;p=ceph.git ObjectStore.h: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 0a15fe7c179..2167318371d 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -623,7 +623,7 @@ public: list list = bl.buffers(); std::list::iterator p; - for(p = list.begin(); p != list.end(); p++) { + for(p = list.begin(); p != list.end(); ++p) { assert(p->length() % sizeof(Op) == 0); char* raw_p = p->c_str(); @@ -655,7 +655,7 @@ public: map::iterator coll_index_p; for (coll_index_p = other.coll_index.begin(); coll_index_p != other.coll_index.end(); - coll_index_p++) { + ++coll_index_p) { cm[coll_index_p->second] = _get_coll_id(coll_index_p->first); } @@ -663,7 +663,7 @@ public: map::iterator object_index_p; for (object_index_p = other.object_index.begin(); object_index_p != other.object_index.end(); - object_index_p++) { + ++object_index_p) { om[object_index_p->second] = _get_object_id(object_index_p->first); } @@ -792,14 +792,14 @@ public: map::iterator coll_index_p; for (coll_index_p = t->coll_index.begin(); coll_index_p != t->coll_index.end(); - coll_index_p++) { + ++coll_index_p) { colls[coll_index_p->second] = coll_index_p->first; } map::iterator object_index_p; for (object_index_p = t->object_index.begin(); object_index_p != t->object_index.end(); - object_index_p++) { + ++object_index_p) { objects[object_index_p->second] = object_index_p->first; } }