[apps/probability] Use namespaced App::app() function

This commit is contained in:
Romain Goyet
2019-06-03 14:51:58 +02:00
committed by EmilieNumworks
parent e5f7b93efb
commit eaa4758367
4 changed files with 11 additions and 2 deletions

View File

@@ -63,6 +63,10 @@ private:
StackViewController m_stackViewController;
};
App * app() {
return static_cast<App *>(::app());
}
}
#endif

View File

@@ -267,7 +267,7 @@ void CalculationController::setCalculationAccordingToIndex(int index, bool force
}
TextFieldDelegateApp * CalculationController::textFieldDelegateApp() {
return (App *)app();
return app();
}
void CalculationController::updateTitle() {

View File

@@ -25,6 +25,10 @@ private:
StackViewController m_stackViewController;
};
App * app() {
return static_cast<App *>(::app());
}
}
#endif

View File

@@ -2,6 +2,7 @@
#include "../../shared/poincare_helpers.h"
#include <assert.h>
#include <cmath>
#include "../app.h"
#include <poincare/integer.h>
@@ -95,7 +96,7 @@ bool DisplayModeController::textFieldDidFinishEditing(TextField * textField, con
}
Shared::TextFieldDelegateApp * DisplayModeController::textFieldDelegateApp() {
return (Shared::TextFieldDelegateApp *)app();
return app();
}
}