]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/mdstypes.h: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 12:03:30 +0000 (13:03 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 12:03:30 +0000 (13:03 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/mdstypes.h

index c7d678699abb213106c33028fd6e34b2619d3f11..cf5c1a7f5cb37c17a058201e3886e38a9aaf829e 100644 (file)
@@ -1250,7 +1250,7 @@ protected:
     map<int, int>::iterator it = ref_map.begin();
     while (it != ref_map.end()) {
       out << " " << pin_name(it->first) << "=" << it->second;
-      it++;
+      ++it;
     }
 #else
     out << " nref=" << ref;