Use make_unique instead of unique_ptr(new T)

This commit is contained in:
Martin Hořeňovský 2021-05-28 23:10:33 +02:00
parent 816f69416b
commit e6da4e10ae
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -1165,7 +1165,7 @@ namespace Catch {
makeTestCaseInfo(std::string const& _className, makeTestCaseInfo(std::string const& _className,
NameAndTags const& nameAndTags, NameAndTags const& nameAndTags,
SourceLineInfo const& _lineInfo ) { 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, TestCaseInfo::TestCaseInfo(std::string const& _className,