diff options
| author | Martin Hořeňovský | 2021-05-28 23:43:15 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-28 23:43:15 +0200 |
| commit | 2ae28fc8525813023f8ec0f5318670cfaf86ec83 (patch) | |
| tree | 8d901e2879195f41460f70d569ef010c77f7dc1b /src/catch2/internal/catch_test_registry.cpp | |
| parent | f9ec34ce016ad5b12afc22251b254e93ad7fd038 (diff) | |
| download | catch3-2ae28fc8525813023f8ec0f5318670cfaf86ec83.tar.gz | |
Use make_unique instead of unique_ptr(new T) in more places
Diffstat (limited to 'src/catch2/internal/catch_test_registry.cpp')
| -rw-r--r-- | src/catch2/internal/catch_test_registry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_test_registry.cpp b/src/catch2/internal/catch_test_registry.cpp index bb5d7810..e4ebc2dd 100644 --- a/src/catch2/internal/catch_test_registry.cpp +++ b/src/catch2/internal/catch_test_registry.cpp @@ -14,7 +14,7 @@ namespace Catch { Detail::unique_ptr<ITestInvoker> makeTestInvoker( void(*testAsFunction)() ) { - return Detail::unique_ptr<ITestInvoker>( new TestInvokerAsFunction( testAsFunction )); + return Detail::make_unique<TestInvokerAsFunction>( testAsFunction ); } AutoReg::AutoReg( Detail::unique_ptr<ITestInvoker> invoker, SourceLineInfo const& lineInfo, StringRef classOrMethod, NameAndTags const& nameAndTags ) noexcept { |