mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 02:25:38 +02:00
Refactoring towards interface based config
This commit is contained in:
@@ -22,11 +22,11 @@ namespace Catch {
|
||||
deleteAllValues( m_factories );
|
||||
}
|
||||
|
||||
virtual IStreamingReporter* create( std::string const& name, ReporterConfig const& config ) const {
|
||||
virtual IStreamingReporter* create( std::string const& name, Ptr<IConfig> const& config ) const {
|
||||
FactoryMap::const_iterator it = m_factories.find( name );
|
||||
if( it == m_factories.end() )
|
||||
return NULL;
|
||||
return it->second->create( config );
|
||||
return it->second->create( ReporterConfig( config ) );
|
||||
}
|
||||
|
||||
void registerReporter( std::string const& name, IReporterFactory* factory ) {
|
||||
|
Reference in New Issue
Block a user