]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ObjectStore.h: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 7 Jan 2015 11:51:16 +0000 (12:51 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 21:51:07 +0000 (22:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/ObjectStore.h

index 0a15fe7c179cb322e29be89a412004ad8b033186..2167318371d45494d47172d2282ab70eaef0ebc3 100644 (file)
@@ -623,7 +623,7 @@ public:
       list<bufferptr> list = bl.buffers();
       std::list<bufferptr>::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<coll_t, __le32>::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<ghobject_t, __le32>::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<coll_t, __le32>::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<ghobject_t, __le32>::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;
         }
       }