mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 01:18:02 +00:00
Converted (almost) all for-loops with iterators or indices to range-based
This commit is contained in:
parent
073377a4e4
commit
1f3ba8a0b6
19 changed files with 136 additions and 220 deletions
|
@ -99,9 +99,9 @@ namespace Catch {
|
|||
testCaseInfo.lcaseTags.clear();
|
||||
|
||||
std::ostringstream oss;
|
||||
for( std::set<std::string>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it ) {
|
||||
oss << '[' << *it << ']';
|
||||
std::string lcaseTag = toLower( *it );
|
||||
for( auto const& tag : tags ) {
|
||||
oss << '[' << tag << ']';
|
||||
std::string lcaseTag = toLower( tag );
|
||||
testCaseInfo.properties = static_cast<TestCaseInfo::SpecialProperties>( testCaseInfo.properties | parseSpecialTag( lcaseTag ) );
|
||||
testCaseInfo.lcaseTags.insert( lcaseTag );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue