[apps/shared] Avoid container casting when possible

Change-Id: I646e605c88ad577ebd9102032aad77ff8eae6ad7
This commit is contained in:
Émilie Feral
2017-02-13 18:05:02 +01:00
parent 627dd676be
commit 15a736c855
18 changed files with 54 additions and 52 deletions

View File

@@ -25,7 +25,7 @@ bool EditableCellTableViewController::textFieldDidReceiveEvent(TextField * textF
}
bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * textField, const char * text) {
AppsContainer * appsContainer = (AppsContainer *)app()->container();
AppsContainer * appsContainer = ((TextFieldDelegateApp *)app())->container();
Context * globalContext = appsContainer->globalContext();
float floatBody = Expression::parse(text)->approximate(*globalContext, appsContainer->preferences()->angleUnit());
setDataAtLocation(floatBody, m_selectableTableView.selectedColumn(), m_selectableTableView.selectedRow());