From e6da4e10aeee70556f9cea23e71f8eea6151b3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 28 May 2021 23:10:33 +0200 Subject: [PATCH] Use make_unique instead of unique_ptr(new T) --- extras/catch_amalgamated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(new TestCaseInfo(_className, nameAndTags, _lineInfo)); + return Detail::make_unique(_className, nameAndTags, _lineInfo); } TestCaseInfo::TestCaseInfo(std::string const& _className,