Migrated IReporterFactory to std::shared_ptr

This commit is contained in:
Phil Nash
2017-04-25 20:28:53 +01:00
parent 338ba6b9ba
commit dd78824697
5 changed files with 16 additions and 13 deletions

View File

@@ -27,10 +27,10 @@ namespace Catch {
return it->second->create( ReporterConfig( config ) );
}
void registerReporter( std::string const& name, Ptr<IReporterFactory> const& factory ) {
void registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) {
m_factories.insert( std::make_pair( name, factory ) );
}
void registerListener( Ptr<IReporterFactory> const& factory ) {
void registerListener( IReporterFactoryPtr const& factory ) {
m_listeners.push_back( factory );
}