Minor clean-up.

This commit is contained in:
Patrick Lühne 2016-09-04 23:54:15 +02:00
parent c2af84a800
commit dd621fcd5c

View File

@ -30,18 +30,13 @@ ExpressionPointer Imply::simplified()
m_arguments[1] = m_arguments[1]->simplified(); m_arguments[1] = m_arguments[1]->simplified();
auto notArgument0 = NotPointer(new Not); auto notArgument0 = NotPointer(new Not);
notArgument0->setArgument(std::move(m_arguments[0])); notArgument0->setArgument(m_arguments[0]);
auto orExpression = OrPointer(new Or); auto orExpression = OrPointer(new Or);
orExpression->addArgument(std::move(notArgument0)); orExpression->addArgument(notArgument0);
orExpression->addArgument(std::move(m_arguments[1])); orExpression->addArgument(m_arguments[1]);
auto normalizedOrExpression = orExpression->simplified(); return orExpression->simplified();
if (normalizedOrExpression)
return normalizedOrExpression;
return std::move(orExpression);
} }
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////