Skip to content

Commit

Permalink
Exchange ordinary loop by range-based for loop (#97)
Browse files Browse the repository at this point in the history
Remove `[modernize-loop-convert]` warning
  • Loading branch information
franziska-wegner committed Jan 5, 2024
1 parent 7688fc3 commit 0d02e3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/DataStructures/Container/TestBucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,9 @@ TEST_F ( TestBucketWithMultipleInteger
std::vector<TElement> optima = bucket_.Optima();
ASSERT_EQ ( 3, optima.size() );

for ( Types::count counter = 0
; counter < optima.size()
; ++counter )
for ( auto const & optimum : optima )
{
ASSERT_EQ ( optima[counter], 1 );
ASSERT_EQ ( optimum, 1 );
}
}
///@}
Expand Down

0 comments on commit 0d02e3c

Please sign in to comment.