Some listener and factory clean-ups
This commit is contained in:
parent
dd78824697
commit
a96f25c716
3 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue