Some listener and factory clean-ups

This commit is contained in:
Phil Nash 2017-04-25 20:35:38 +01:00
parent dd78824697
commit a96f25c716
3 changed files with 4 additions and 5 deletions

View file

@ -42,7 +42,7 @@ namespace Catch {
return reporter;
}
Ptr<IStreamingReporter> addListeners( IConfigPtr const& config, Ptr<IStreamingReporter> reporters ) {
IReporterRegistry::Listeners listeners = getRegistryHub().getReporterRegistry().getListeners();
auto const& listeners = getRegistryHub().getReporterRegistry().getListeners();
for( auto const& listener : listeners )
reporters = addReporter(reporters, listener->create( ReporterConfig( config ) ) );
return reporters;