From: Danny Al-Gaaf Date: Thu, 14 Mar 2013 13:21:35 +0000 (+0100) Subject: libcephfs.cc: prefer prefix ++operator for iterators X-Git-Tag: v0.60~74^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab46e6d56cd36fa8b7a1b27be3b4939b7effe921;p=ceph.git libcephfs.cc: prefer prefix ++operator for iterators Signed-off-by: Danny Al-Gaaf --- diff --git a/src/libcephfs.cc b/src/libcephfs.cc index 35f1fd6ad36..ef988855425 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -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 >::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;