mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
test/test_snap_mapper.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
ed159c4a13
commit
80615f6bfe
@ -25,7 +25,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