mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Changed "const X ref"s to "X const ref"s
- Brought older code up to current convention (with the help of a Python script)
This commit is contained in:
@@ -22,18 +22,18 @@ namespace Catch {
|
||||
deleteAllValues( m_factories );
|
||||
}
|
||||
|
||||
virtual IStreamingReporter* create( const std::string& name, const ReporterConfig& config ) const {
|
||||
virtual IStreamingReporter* create( std::string const& name, ReporterConfig const& config ) const {
|
||||
FactoryMap::const_iterator it = m_factories.find( name );
|
||||
if( it == m_factories.end() )
|
||||
return NULL;
|
||||
return it->second->create( config );
|
||||
}
|
||||
|
||||
void registerReporter( const std::string& name, IReporterFactory* factory ) {
|
||||
void registerReporter( std::string const& name, IReporterFactory* factory ) {
|
||||
m_factories.insert( std::make_pair( name, factory ) );
|
||||
}
|
||||
|
||||
const FactoryMap& getFactories() const {
|
||||
FactoryMap const& getFactories() const {
|
||||
return m_factories;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user