[apps] Clean GLobalContext

This commit is contained in:
Léa Saviot
2018-10-09 16:45:48 +02:00
committed by Émilie Feral
parent d869be7782
commit 97cba08b23
6 changed files with 90 additions and 55 deletions

View File

@@ -175,7 +175,7 @@ Layout VariableBoxController::expressionLayoutForRecord(Storage::Record record,
}
assert(index-m_firstMemoizedLayoutIndex < k_maxNumberOfDisplayedRows);
if (m_layouts[index-m_firstMemoizedLayoutIndex].isUninitialized()) {
m_layouts[index-m_firstMemoizedLayoutIndex] = Expression::ExpressionFromRecord(record).createLayout(Poincare::Preferences::sharedPreferences()->displayMode(), Constant::ShortNumberOfSignificantDigits);
m_layouts[index-m_firstMemoizedLayoutIndex] = GlobalContext::ExpressionFromRecord(record).createLayout(Poincare::Preferences::sharedPreferences()->displayMode(), Constant::ShortNumberOfSignificantDigits);
}
return m_layouts[index-m_firstMemoizedLayoutIndex];
}