Converted (almost) all for-loops with iterators or indices to range-based

This commit is contained in:
Phil Nash committed 2017-04-25 11:07:02 +01:00
1 parent 073377a4e4
commit 1f3ba8a0b6
19 files changed
+136 -220

No files matched your search

+2 -4
View File
@@ -62,10 +62,8 @@ namespace Catch {
}
bool moveNext() {
std::vector<IGeneratorInfo*>::const_iterator it = m_generatorsInOrder.begin();
std::vector<IGeneratorInfo*>::const_iterator itEnd = m_generatorsInOrder.end();
for(; it != itEnd; ++it ) {
if( (*it)->moveNext() )
for( auto generator : m_generatorsInOrder ) {
if( generator->moveNext() )
return true;
}
return false;