]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Session.h: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Mar 2013 16:19:23 +0000 (17:19 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Mar 2013 16:19:23 +0000 (17:19 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/mdstypes.h

index 55d7cedb2e34f0f15e1fd14c240b94be9faa744a..b374abbc2c5943b5c9dc5b9799f083968e4adbc7 100644 (file)
@@ -417,7 +417,7 @@ struct inode_t {
       if (p->second.follows >= last)
        client_ranges.erase(p++);
       else
-       p++;
+       ++p;
     }
   }
 
@@ -1234,7 +1234,7 @@ protected:
       int last = *it;
       int c = 0;
       do {
-       it++;
+       ++it;
        c++;
       } while (it != ref_set.end() && *it == last);
       if (c > 1)
@@ -1356,7 +1356,7 @@ protected:
 //                                << " tag " << hex << it->first << dec
 //                                << " on " << *this 
 //                                << dendl;
-       it++;
+       ++it;
       }
     }
     if (waiting.empty())