From 70e1f5b25b6dcf385de950107e9656a2482f3cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 29 May 2018 09:09:07 +0200 Subject: [PATCH] [apps/stats] Inline StoreController::contentView() --- apps/shared/store_controller.cpp | 4 ++-- apps/shared/store_controller.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/shared/store_controller.cpp b/apps/shared/store_controller.cpp index 2f9b4f256..72ca5aa91 100644 --- a/apps/shared/store_controller.cpp +++ b/apps/shared/store_controller.cpp @@ -171,7 +171,7 @@ void StoreController::didBecomeFirstResponder() { selectCellAtLocation(0, 0); } EditableCellTableViewController::didBecomeFirstResponder(); - app()->setFirstResponder(static_cast(view())); + app()->setFirstResponder(contentView()); } Responder * StoreController::tabController() const { @@ -179,7 +179,7 @@ Responder * StoreController::tabController() const { } SelectableTableView * StoreController::selectableTableView() { - return static_cast(view())->dataView(); + return contentView()->dataView(); } bool StoreController::cellAtLocationIsEditable(int columnIndex, int rowIndex) { diff --git a/apps/shared/store_controller.h b/apps/shared/store_controller.h index 88f895bfc..cddad9805 100644 --- a/apps/shared/store_controller.h +++ b/apps/shared/store_controller.h @@ -80,6 +80,7 @@ protected: StoreParameterController m_storeParameterController; private: bool cellShouldBeTransparent(int i, int j); + ContentView * contentView() { return static_cast(view()); } }; }