librados/RadosClient.cc: prefer prefix ++operator for iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-14 14:24:49 +01:00
parent 5ac012acfd
commit 7332796023

View File

@ -351,7 +351,7 @@ int librados::RadosClient::pool_list(std::list<std::string>& v)
Mutex::Locker l(lock);
for (map<int64_t,pg_pool_t>::const_iterator p = osdmap.get_pools().begin();
p != osdmap.get_pools().end();
p++)
++p)
v.push_back(osdmap.get_pool_name(p->first));
return 0;
}