Browse Source

[2432] Remove iter variable

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

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

@@ -141,8 +141,7 @@ TEST_F(RRsetCollectionTest, addAndRemove) {
 
 TEST_F(RRsetCollectionTest, iteratorTest) {
     // The collection must not be empty.
-    RRsetCollection::iterator iter = collection.begin();
-    EXPECT_NE(collection.end(), iter);
+    EXPECT_NE(collection.end(), collection.begin());
 
     // Here, we just count the records and do some basic tests on them.
     size_t count = 0;