Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-06-19 20:57:06 +0200
committerMartin Hořeňovský2021-06-19 20:57:06 +0200
commita7533707ff3e1e4ed7a60e0ebe1984ad4b08e3f9 (patch)
treee65f86b16efaa607bc5b217537ed4b61d0239a8d /src/catch2/interfaces
parent28a33497be6c6d18d9fc6e2e4cfe6ce7b50680be (diff)
downloadcatch3-a7533707ff3e1e4ed7a60e0ebe1984ad4b08e3f9.tar.gz
Use unique_ptr for passing around exception translators
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_registry_hub.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_registry_hub.hpp b/src/catch2/interfaces/catch_interfaces_registry_hub.hpp
index 71f2faa2..aeefeedb 100644
--- a/src/catch2/interfaces/catch_interfaces_registry_hub.hpp
+++ b/src/catch2/interfaces/catch_interfaces_registry_hub.hpp
@@ -47,7 +47,7 @@ namespace Catch {
virtual void registerReporter( std::string const& name, IReporterFactoryPtr factory ) = 0;
virtual void registerListener( IReporterFactoryPtr factory ) = 0;
virtual void registerTest(Detail::unique_ptr<TestCaseInfo>&& testInfo, Detail::unique_ptr<ITestInvoker>&& invoker) = 0;
- virtual void registerTranslator( const IExceptionTranslator* translator ) = 0;
+ virtual void registerTranslator( Detail::unique_ptr<IExceptionTranslator>&& translator ) = 0;
virtual void registerTagAlias( std::string const& alias, std::string const& tag, SourceLineInfo const& lineInfo ) = 0;
virtual void registerStartupException() noexcept = 0;
virtual IMutableEnumValuesRegistry& getMutableEnumValuesRegistry() = 0;