]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/LFNIndex.cc: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 15 Mar 2013 09:19:27 +0000 (10:19 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 11:35:36 +0000 (12:35 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/LFNIndex.cc

index 412100fe60420d27aa11801ba018b26aa676004e..f1ba8c158f0b0b799adf47680b6db49cda2e61c3 100644 (file)
@@ -233,7 +233,7 @@ int LFNIndex::remove_objects(const vector<string> &dir,
       remaining->insert(pair<string, hobject_t>(
                          lfn_get_short_name(candidate->second.second, *i),
                                             candidate->second.second));
-      candidate++;
+      ++candidate;
     }
     if (!holes.empty())
       clean_chains.insert(lfn_get_short_name(to_clean->second, 0));