mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Use make_unique instead of unique_ptr(new T)
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user