]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/Object.cc: prefer prefix --/++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 13:31:23 +0000 (14:31 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 13:31:23 +0000 (14:31 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/osd/Object.cc

index 3ff1eb9bb2d42d8e106b33fabc31cbefd4539a74..408cc63ac0200b2df8f834fee178fd6e43fede5e 100644 (file)
@@ -90,7 +90,7 @@ ObjectDesc::iterator &ObjectDesc::iterator::advance(bool init) {
   while (pos == limit) {
     limit = *stack.begin();
     stack.pop_front();
-    cur_cont--;
+    --cur_cont;
   }
 
   if (cur_cont == obj.layers.end()) {
@@ -110,7 +110,7 @@ ObjectDesc::iterator &ObjectDesc::iterator::advance(bool init) {
     if (next < limit) {
       limit = next;
     }
-    cur_cont++;
+    ++cur_cont;
     if (cur_cont == obj.layers.end()) {
       break;
     }