summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-18 14:34:15 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-18 14:34:15 +0100
commit80615f6bfea128e1377145e1087eb4bd34ca8983 (patch)
tree0dce80d4f5eb7fc854058dcdec7d490a8b74eb11
parented159c4a134a1abfa4960d647e974bd5798ae479 (diff)
downloadceph-80615f6bfea128e1377145e1087eb4bd34ca8983.tar.gz
test/test_snap_mapper.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/test/test_snap_mapper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_snap_mapper.cc b/src/test/test_snap_mapper.cc
index db58c685b11..a3b250052ef 100644
--- a/src/test/test_snap_mapper.cc
+++ b/src/test/test_snap_mapper.cc
@@ -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;
}