From 7c7a8602c473bc160506e064097bd9ecc204425b Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Wed, 22 Feb 2023 22:05:37 +0200 Subject: screens: Remove displayapp parameter from screen The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens. --- src/displayapp/screens/Label.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/Label.cpp') diff --git a/src/displayapp/screens/Label.cpp b/src/displayapp/screens/Label.cpp index d5a09be9..e85e2a5a 100644 --- a/src/displayapp/screens/Label.cpp +++ b/src/displayapp/screens/Label.cpp @@ -2,8 +2,8 @@ using namespace Pinetime::Applications::Screens; -Label::Label(uint8_t screenID, uint8_t numScreens, Pinetime::Applications::DisplayApp* app, lv_obj_t* labelText) - : Screen(app), labelText {labelText}, pageIndicator(screenID, numScreens) { +Label::Label(uint8_t screenID, uint8_t numScreens, lv_obj_t* labelText) + : labelText {labelText}, pageIndicator(screenID, numScreens) { pageIndicator.Create(); } -- cgit v1.2.3-70-g09d2