mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/probability] Use namespaced App::app() function
This commit is contained in:
committed by
EmilieNumworks
parent
e5f7b93efb
commit
eaa4758367
@@ -63,6 +63,10 @@ private:
|
||||
StackViewController m_stackViewController;
|
||||
};
|
||||
|
||||
App * app() {
|
||||
return static_cast<App *>(::app());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -267,7 +267,7 @@ void CalculationController::setCalculationAccordingToIndex(int index, bool force
|
||||
}
|
||||
|
||||
TextFieldDelegateApp * CalculationController::textFieldDelegateApp() {
|
||||
return (App *)app();
|
||||
return app();
|
||||
}
|
||||
|
||||
void CalculationController::updateTitle() {
|
||||
|
||||
@@ -25,6 +25,10 @@ private:
|
||||
StackViewController m_stackViewController;
|
||||
};
|
||||
|
||||
App * app() {
|
||||
return static_cast<App *>(::app());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user