diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:31:23 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 14:31:23 +0100 |
commit | 28354c0af1531e86886fbfab6a941bc30026fc74 (patch) | |
tree | 1b2d2349750747a817bac4399fa8b16a01c796f7 | |
parent | ed4a0faaac059a3f3bd48277132f69dfb57aac50 (diff) | |
download | ceph-28354c0af1531e86886fbfab6a941bc30026fc74.tar.gz |
test/osd/Object.cc: prefer prefix --/++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/test/osd/Object.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/osd/Object.cc b/src/test/osd/Object.cc index 3ff1eb9bb2d..408cc63ac02 100644 --- a/src/test/osd/Object.cc +++ b/src/test/osd/Object.cc @@ -90,7 +90,7 @@ ObjectDesc::iterator &ObjectDesc::iterator::advance(bool init) { while (pos == limit) { limit = *stack.begin(); stack.pop_front(); - cur_cont--; + --cur_cont; } if (cur_cont == obj.layers.end()) { @@ -110,7 +110,7 @@ ObjectDesc::iterator &ObjectDesc::iterator::advance(bool init) { if (next < limit) { limit = next; } - cur_cont++; + ++cur_cont; if (cur_cont == obj.layers.end()) { break; } |