diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:38:49 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:38:49 +0100 |
commit | 37fd66e00913b454be85f2c77998ecb139579fcf (patch) | |
tree | e4a8eb13c8b750b1a4152af52c0798cad7ada5e3 | |
parent | 72580516bb70627b3cfaf196f582b597834f1763 (diff) | |
download | ceph-37fd66e00913b454be85f2c77998ecb139579fcf.tar.gz |
test/filestore/test_idempotent.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/test/filestore/test_idempotent.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/filestore/test_idempotent.cc b/src/test/filestore/test_idempotent.cc index 9feba3f9f6a..6be706d97b6 100644 --- a/src/test/filestore/test_idempotent.cc +++ b/src/test/filestore/test_idempotent.cc @@ -38,7 +38,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; } |