Fixed minor incorrect variable references.

This commit is contained in:
Patrick Lühne 2017-04-10 17:50:19 +02:00
parent 57bc28bfd3
commit 6e7abb283e
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ ast::Formula buildCompletedFormulaDisjunction(const ast::Predicate &predicate, c
for (const auto &formula : formulas)
{
assert(formula.is<ast::Implies>());
auto &implies = formula.get<ast::Implies>();
const auto &implies = formula.get<ast::Implies>();
if (!implies.consequent.is<ast::Predicate>())
continue;

View File

@ -17,7 +17,7 @@ bool matchesVariable(const ast::Term &term, const ast::Variable &variable)
if (!term.is<ast::Variable>())
return false;
const auto otherVariable = term.get<ast::Variable>();
const auto &otherVariable = term.get<ast::Variable>();
return variable.name == otherVariable.name;
}