mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Fixed temporary encapsulation violation
This commit is contained in:
parent
16a6dd5746
commit
e3bcf68f7a
@ -22,8 +22,8 @@ namespace Catch
|
||||
if( config.listWhat() & RunnerConfig::listReports )
|
||||
{
|
||||
std::cout << "Available reports:\n";
|
||||
ReporterRegistry::FactoryMap::const_iterator it = ReporterRegistry::instance().m_factories.begin();
|
||||
ReporterRegistry::FactoryMap::const_iterator itEnd = ReporterRegistry::instance().m_factories.end();
|
||||
ReporterRegistry::FactoryMap::const_iterator it = ReporterRegistry::instance().getFactories().begin();
|
||||
ReporterRegistry::FactoryMap::const_iterator itEnd = ReporterRegistry::instance().getFactories().end();
|
||||
for(; it != itEnd; ++it )
|
||||
{
|
||||
// !TBD: consider listAs()
|
||||
|
@ -146,8 +146,14 @@ namespace Catch
|
||||
m_factories.insert( std::make_pair( name, new ReporterFactory<T>() ) );
|
||||
}
|
||||
|
||||
// private: // !TBD
|
||||
typedef std::map<std::string, IReporterFactory*> FactoryMap;
|
||||
|
||||
const FactoryMap& getFactories() const
|
||||
{
|
||||
return m_factories;
|
||||
}
|
||||
|
||||
private:
|
||||
FactoryMap m_factories;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user