]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs.cc: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 14 Mar 2013 13:21:35 +0000 (14:21 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 14 Mar 2013 18:18:05 +0000 (19:18 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/libcephfs.cc

index 35f1fd6ad363be7af26e9b4621e2f018395d8982..ef988855425d2ea20955144d6be7b58ecfaacd8d 100644 (file)
@@ -833,7 +833,7 @@ extern "C" int ceph_get_osd_crush_location(struct ceph_mount_info *cmount,
   size_t needed = 0;
   size_t cur = 0;
   vector<pair<string, string> >::iterator it;
-  for (it = loc.begin(); it != loc.end(); it++) {
+  for (it = loc.begin(); it != loc.end(); ++it) {
     string& type = it->first;
     string& name = it->second;
     needed += type.size() + name.size() + 2;