1
0
mirror of https://github.com/ceph/ceph synced 2024-12-21 02:42:48 +00:00

test/osd/RadosModel.h: 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-18 14:33:32 +01:00
parent 0535e1f024
commit ed159c4a13

View File

@ -34,7 +34,7 @@ typename T::iterator rand_choose(T &cont) {
int index = rand() % cont.size();
typename T::iterator retval = cont.begin();
for (; index > 0; --index) retval++;
for (; index > 0; --index) ++retval;
return retval;
}