Converted (almost) all for-loops with iterators or indices to range-based
This commit is contained in:
1 parent
073377a4e4
commit
1f3ba8a0b6
19 files changed
+136
-220
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user