]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
IndexManager.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Sep 2014 12:03:03 +0000 (14:03 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Sep 2014 12:03:03 +0000 (14:03 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/IndexManager.cc

index bc935323e8087a017d2c551a6f25d6ae7b387484..ba9ec1fccfc6f3ca00f1465b427081ee49602a12 100644 (file)
@@ -63,8 +63,8 @@ static int get_version(const char *path, uint32_t *version) {
 
 IndexManager::~IndexManager() {
 
-  for(map<coll_t, CollectionIndex* > ::iterator it = col_indices.begin(); 
-                                it != col_indices.end(); it++) {
+  for (map<coll_t, CollectionIndex* > ::iterator it = col_indices.begin(); 
+       it != col_indices.end(); ++it) {
 
     delete it->second;
     it->second = NULL;