mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-16 02:05:38 +02:00
Converted (almost) all for-loops with iterators or indices to range-based
This commit is contained in:
@@ -112,12 +112,8 @@ namespace Catch {
|
||||
msg << " with message:";
|
||||
if( assertionStats.infoMessages.size() > 1 )
|
||||
msg << " with messages:";
|
||||
for( std::vector<MessageInfo>::const_iterator
|
||||
it = assertionStats.infoMessages.begin(),
|
||||
itEnd = assertionStats.infoMessages.end();
|
||||
it != itEnd;
|
||||
++it )
|
||||
msg << "\n \"" << it->message << "\"";
|
||||
for( auto const& messageInfo : assertionStats.infoMessages )
|
||||
msg << "\n \"" << messageInfo.message << "\"";
|
||||
|
||||
|
||||
if( result.hasExpression() ) {
|
||||
|
Reference in New Issue
Block a user