mirror of
https://github.com/ceph/ceph
synced 2025-03-07 16:58:39 +00:00
ObjectMap/test_object_map.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
f56d4847a2
commit
e94cbeee4d
@ -28,7 +28,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user