[app/solver] Inline code

Does not reduce binary size, but cleaner
This commit is contained in:
Léa Saviot
2019-07-04 17:27:36 +02:00
committed by Émilie Feral
parent e5e9f0bf78
commit a6e0471748
2 changed files with 1 additions and 6 deletions

View File

@@ -12,11 +12,6 @@ using namespace Shared;
namespace Solver {
Equation::Equation(Ion::Storage::Record record) :
ExpressionModelHandle(record)
{
}
bool Equation::containsIComplex(Context * context) const {
return expressionClone().recursivelyMatches([](const Expression e, Context * context) { return e.type() == ExpressionNode::Type::Constant && static_cast<const Constant &>(e).isIComplex(); }, context, true);
}

View File

@@ -7,7 +7,7 @@ namespace Solver {
class Equation : public Shared::ExpressionModelHandle {
public:
Equation(Ion::Storage::Record record = Record());
Equation(Ion::Storage::Record record = Record()) : ExpressionModelHandle(record) {}
bool shouldBeClearedBeforeRemove() override {
return false;
}