Prefer make_unique over new

This commit is contained in:
tcoyvwac
2021-10-15 19:46:47 +02:00
parent 1e630fc584
commit ba0c09e082
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -533,7 +533,7 @@ void SourceUpgrade::resetCompiler()
void SourceUpgrade::resetCompiler(ReadCallback::Callback const& _callback)
{
m_compiler.reset(new CompilerStack(_callback));
m_compiler = std::make_unique<CompilerStack>(_callback);
m_compiler->setSources(m_sourceCodes);
m_compiler->setParserErrorRecovery(true);
}