mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Fixed temporary encapsulation violation
This commit is contained in:
		@@ -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;
 | 
			
		||||
    };
 | 
			
		||||
    
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user