From 72e708c24a2245e36e2d5fad983c989d8c81447f Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 2 Oct 2014 18:17:15 +0200 Subject: [PATCH] osd/OSDMap.cc: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- src/osd/OSDMap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index ed9b7e7ecf6b4..e0c133d2a0bf3 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -996,7 +996,7 @@ uint64_t OSDMap::get_features(int entity_type, uint64_t *pmask) const if (entity_type == CEPH_ENTITY_TYPE_OSD) { for (map >::const_iterator p = erasure_code_profiles.begin(); p != erasure_code_profiles.end(); - p++) { + ++p) { const map &profile = p->second; map::const_iterator plugin = profile.find("plugin"); if (plugin != profile.end() && (plugin->second == "isa" || -- 2.39.5