]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CrushTreeDumper.h: prefer ++operator for non-primitive iterator
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 23 Jan 2015 16:54:40 +0000 (17:54 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 21:51:08 +0000 (22:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/crush/CrushTreeDumper.h

index 1a6eff5f26e1bc5e825a99c80a16c1505e73668e..abb5fca05ca36e4711801b3ee8f8d0f3fa07a108 100644 (file)
@@ -81,7 +81,7 @@ namespace CrushTreeDumper {
        if (root == roots.end())
          return false;
        push_back(Item(*root, 0, crush->get_bucket_weightf(*root)));
-       root++;
+       ++root;
       }
 
       qi = front();
@@ -147,7 +147,7 @@ namespace CrushTreeDumper {
     f->open_array_section("children");
     for (list<int>::const_iterator i = qi.children.begin();
         i != qi.children.end();
-        i++) {
+        ++i) {
       f->dump_int("child", *i);
     }
     f->close_section();