diff options
Diffstat (limited to 'coding/coding_tests/dd_vector_test.cpp')
-rw-r--r-- | coding/coding_tests/dd_vector_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/coding_tests/dd_vector_test.cpp b/coding/coding_tests/dd_vector_test.cpp index c6993997e3..56a96aab6e 100644 --- a/coding/coding_tests/dd_vector_test.cpp +++ b/coding/coding_tests/dd_vector_test.cpp @@ -19,8 +19,8 @@ UNIT_TEST(DDVector_Smoke) TEST_EQUAL(2, v[1], ()); TEST_EQUAL(3, v[2], ()); Vector::const_iterator it = v.begin(); - for (Vector::size_type i = 0; i < v.size(); ++i, ++it) - TEST_EQUAL(v[i], *it, ()); + for (auto const value : v) + TEST_EQUAL(value, *it++, ()); } UNIT_TEST(DDVector_IncorrectSize) |