First cut of StaticRegistries - separate from Context

This commit is contained in:
Phil Nash
2012-08-06 20:16:53 +01:00
parent 5234b15ff4
commit 1091ca81e6
21 changed files with 222 additions and 141 deletions

View File

@@ -8,7 +8,7 @@
#ifndef TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED
#include "catch_context.h"
#include "catch_interfaces_static_registries.h"
namespace Catch {
@@ -29,7 +29,7 @@ namespace Catch {
public:
ReporterRegistrar( const std::string& name ) {
getCurrentContext().getReporterRegistry().registerReporter( name, new ReporterFactory() );
getStaticRegistries().registerReporter( name, new ReporterFactory() );
}
};
}