[apps/probability] Avoid a local snapshot cast

This commit is contained in:
Romain Goyet
2019-06-03 14:48:24 +02:00
committed by EmilieNumworks
parent 581ec55832
commit e5f7b93efb
4 changed files with 4 additions and 6 deletions

View File

@@ -73,8 +73,7 @@ void Probability::LawController::viewWillAppear() {
}
void Probability::LawController::didBecomeFirstResponder() {
App::Snapshot * snapshot = (App::Snapshot *)app()->snapshot();
snapshot->setActivePage(App::Snapshot::Page::Law);
app()->snapshot()->setActivePage(App::Snapshot::Page::Law);
if (selectedRow() == -1) {
selectCellAtLocation(0, 0);
} else {