diff options
| author | Martin Hořeňovský | 2021-05-28 23:10:33 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-06-01 00:17:22 +0200 |
| commit | e6da4e10aeee70556f9cea23e71f8eea6151b3d9 (patch) | |
| tree | 66a8c06c4c9adde7ff6b4dbf530a75790c167cec | |
| parent | 816f69416be1bccd3bebfe61f631b654ea292723 (diff) | |
| download | catch3-e6da4e10aeee70556f9cea23e71f8eea6151b3d9.tar.gz | |
Use make_unique instead of unique_ptr(new T)
| -rw-r--r-- | extras/catch_amalgamated.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/catch_amalgamated.cpp b/extras/catch_amalgamated.cpp index 43f3eed9..b67149f0 100644 --- a/extras/catch_amalgamated.cpp +++ b/extras/catch_amalgamated.cpp @@ -1165,7 +1165,7 @@ namespace Catch { makeTestCaseInfo(std::string const& _className, NameAndTags const& nameAndTags, SourceLineInfo const& _lineInfo ) { - return Detail::unique_ptr<TestCaseInfo>(new TestCaseInfo(_className, nameAndTags, _lineInfo)); + return Detail::make_unique<TestCaseInfo>(_className, nameAndTags, _lineInfo); } TestCaseInfo::TestCaseInfo(std::string const& _className, |