[SMTChecker] Use unique_ptr instead of shared_ptr where applicable.

This commit is contained in:
Leonardo Alt
2019-05-09 16:34:22 +02:00
parent c3a1c168d0
commit c8a017ccd6
8 changed files with 18 additions and 21 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ SymbolicVariable::SymbolicVariable(
m_type(move(_type)),
m_uniqueName(move(_uniqueName)),
m_interface(_interface),
m_ssa(make_shared<SSAVariable>())
m_ssa(make_unique<SSAVariable>())
{
solAssert(m_type, "");
m_sort = smtSort(*m_type);
@@ -48,7 +48,7 @@ SymbolicVariable::SymbolicVariable(
m_sort(move(_sort)),
m_uniqueName(move(_uniqueName)),
m_interface(_interface),
m_ssa(make_shared<SSAVariable>())
m_ssa(make_unique<SSAVariable>())
{
solAssert(m_sort, "");
}