[apps/shared] Define static app() accessor in FunctionApp class

This commit is contained in:
Ruben Dashyan
2019-07-18 17:48:27 +02:00
committed by EmilieNumworks
parent 2c9489966d
commit ff887ec4a0
10 changed files with 15 additions and 18 deletions

View File

@@ -111,8 +111,7 @@ double FunctionGraphController::defaultCursorAbscissa() {
}
FunctionStore * FunctionGraphController::functionStore() const {
FunctionApp * myApp = static_cast<FunctionApp *>(app());
return myApp->functionStore();
return FunctionApp::app()->functionStore();
}
void FunctionGraphController::initCursorParameters() {