mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 13:39:24 +00:00
migrated Pattern to std::shared_ptr
This commit is contained in:
parent
0807a6910f
commit
851e40a4bb
2 changed files with 8 additions and 6 deletions
|
@ -104,9 +104,9 @@ namespace Catch {
|
|||
token = token.substr( 8 );
|
||||
}
|
||||
if( !token.empty() ) {
|
||||
Ptr<TestSpec::Pattern> pattern = new T( token );
|
||||
TestSpec::PatternPtr pattern = std::make_shared<T>( token );
|
||||
if( m_exclusion )
|
||||
pattern = new TestSpec::ExcludedPattern( pattern );
|
||||
pattern = std::make_shared<TestSpec::ExcludedPattern>( pattern );
|
||||
m_currentFilter.m_patterns.push_back( pattern );
|
||||
}
|
||||
m_exclusion = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue