Some listener and factory clean-ups

This commit is contained in:
Phil Nash committed 2017-04-25 21:56:14 +01:00
1 parent dd78824697
commit a96f25c716
3 files changed
+4 -5

No files matched your search

+1 -1
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;