diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:33:32 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:33:32 +0100 |
commit | ed159c4a134a1abfa4960d647e974bd5798ae479 (patch) | |
tree | f8685e6b9f4dec41106481c43597f18210a36805 | |
parent | 0535e1f024af9d3d63317f16055b96de014d3636 (diff) | |
download | ceph-ed159c4a134a1abfa4960d647e974bd5798ae479.tar.gz |
test/osd/RadosModel.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/test/osd/RadosModel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/osd/RadosModel.h b/src/test/osd/RadosModel.h index c74d627e0fc..b022d24dc91 100644 --- a/src/test/osd/RadosModel.h +++ b/src/test/osd/RadosModel.h @@ -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; } |