]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TestRocksdbOptionParse.cc: prefer ++operator for non-primitive iter
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 1 Jun 2015 21:48:28 +0000 (23:48 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:07 +0000 (10:50 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/objectstore/TestRocksdbOptionParse.cc

index 4daf970e670cbf736105cf93fbb1ca86e2527b79..cdbbfa9329d88560a2b7b43b3a211b153638664e 100644 (file)
@@ -61,7 +61,7 @@ TEST(RocksDBOption, interpret) {
   int num_low_pri_threads = 0;
   for (vector<rocksdb::ThreadStatus>::iterator it = thread_list.begin();
        it!= thread_list.end();
-       it++) {
+       ++it) {
     if (it->thread_type == rocksdb::ThreadStatus::HIGH_PRIORITY)
       num_high_pri_threads++;
     if (it->thread_type == rocksdb::ThreadStatus::LOW_PRIORITY)