[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

@@ -249,13 +249,11 @@ TabViewController * FunctionListController::tabController() const {
}
FunctionStore * FunctionListController::modelStore() {
FunctionApp * myApp = static_cast<FunctionApp *>(app());
return myApp->functionStore();
return FunctionApp::app()->functionStore();
}
InputViewController * FunctionListController::inputController() {
FunctionApp * myApp = static_cast<FunctionApp *>(app());
return myApp->inputViewController();
return FunctionApp::app()->inputViewController();
}
KDCoordinate FunctionListController::maxFunctionNameWidth() {