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

summaryrefslogtreecommitdiffhomepage
path: root/extras
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-28 23:10:33 +0200
committerMartin Hořeňovský2021-06-01 00:17:22 +0200
commite6da4e10aeee70556f9cea23e71f8eea6151b3d9 (patch)
tree66a8c06c4c9adde7ff6b4dbf530a75790c167cec /extras
parent816f69416be1bccd3bebfe61f631b654ea292723 (diff)
downloadcatch3-e6da4e10aeee70556f9cea23e71f8eea6151b3d9.tar.gz
Use make_unique instead of unique_ptr(new T)
Diffstat (limited to 'extras')
-rw-r--r--extras/catch_amalgamated.cpp2
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,