mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-26 06:25:40 +02:00
Hold exception translators by unique_ptr
- and removed range deleters
This commit is contained in:
@@ -16,11 +16,10 @@
|
||||
namespace Catch {
|
||||
|
||||
ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry() {
|
||||
deleteAll( m_translators );
|
||||
}
|
||||
|
||||
void ExceptionTranslatorRegistry::registerTranslator( const IExceptionTranslator* translator ) {
|
||||
m_translators.push_back( translator );
|
||||
m_translators.push_back( std::unique_ptr<const IExceptionTranslator>( translator ) );
|
||||
}
|
||||
|
||||
std::string ExceptionTranslatorRegistry::translateActiveException() const {
|
||||
|
Reference in New Issue
Block a user