[poincare] In context: clean setExpressionForSymbol

Change-Id: I13f51a6c84537be43de3b78de68e77fade502344
This commit is contained in:
Émilie Feral
2017-09-22 13:21:55 +02:00
parent 2e0caf5374
commit 2b1bd5c191
8 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ VariableContext<T>::VariableContext(char name, Context * parentContext) :
}
template<typename T>
void VariableContext<T>::setExpressionForSymbolName(Expression * expression, const Symbol * symbol) {
void VariableContext<T>::setExpressionForSymbolName(const Expression * expression, const Symbol * symbol) {
if (symbol->name() == m_name) {
if (expression == nullptr) {
return;