[apps] Substitute "app()->container()" by "AppsContainer::sharedAppsContainer()"

This commit is contained in:
Ruben Dashyan
2019-05-14 15:06:23 +02:00
committed by EmilieNumworks
parent 268ad3f3ba
commit eb3da7f395
18 changed files with 25 additions and 30 deletions

View File

@@ -203,7 +203,7 @@ void CalculationController::willDisplayCellAtLocation(HighlightCell * cell, int
Model::Type modelType = m_store->seriesRegressionType(seriesNumber);
// Put dashes if regression is not defined
Poincare::Context * globContext = const_cast<AppsContainer *>(static_cast<const AppsContainer *>(app()->container()))->globalContext();
Poincare::Context * globContext = AppsContainer::sharedAppsContainer()->globalContext();
double * coefficients = m_store->coefficientsForSeries(seriesNumber, globContext);
bool coefficientsAreDefined = true;
int numberOfCoefs = m_store->modelForSeries(seriesNumber)->numberOfCoefficients();