mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Prefer make_unique over new
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user