Parcourir la source

[2432] Use prefix operator++

Mukund Sivaraman il y a 12 ans
Parent
commit
09a0594dde

+ 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)));
         }