From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 15:41:16 +0000 (+0100) Subject: CrushWrapper: prefer prefix ++operator for non-trivial iterator X-Git-Tag: v0.78~138^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f68a5ca5b5d14dbe908c526df7ec8eb97f4b9ea;p=ceph.git CrushWrapper: prefer prefix ++operator for non-trivial iterator Signed-off-by: Danny Al-Gaaf --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index 1c5d54a83ffe..50a1d9b1435b 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1411,7 +1411,7 @@ bool CrushWrapper::is_valid_crush_name(const string& s) bool CrushWrapper::is_valid_crush_loc(CephContext *cct, const map loc) { - for (map::const_iterator l = loc.begin(); l != loc.end(); l++) { + for (map::const_iterator l = loc.begin(); l != loc.end(); ++l) { if (!is_valid_crush_name(l->first) || !is_valid_crush_name(l->second)) { ldout(cct, 1) << "loc["