Browse Source

[2432] Use prefix operator++

Mukund Sivaraman 12 years ago
parent
commit
e7f9ab5365
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/dns/rrset_collection.h
  2. 1 1
      src/lib/dns/tests/rrset_collection_unittest.cc

+ 1 - 1
src/lib/dns/rrset_collection.h

@@ -142,7 +142,7 @@ protected:
 
         virtual IterPtr getNext() {
             CollectionMap::iterator it = iter_;
-            it++;
+            ++it;
             return (RRsetCollectionBase::IterPtr(new DnsIter(it)));
         }
 

+ 1 - 1
src/lib/dns/tests/rrset_collection_unittest.cc

@@ -201,7 +201,7 @@ protected:
 
         virtual IterPtr getNext() {
             MyCollection::iterator it = iter_;
-            it++;
+            ++it;
             return (RRsetCollectionBase::IterPtr(new MyIter(it)));
         }