diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-02-22 22:05:37 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-02-25 16:56:03 +0200 |
| commit | 7c7a8602c473bc160506e064097bd9ecc204425b (patch) | |
| tree | 1731d2fa118ab899dd9107664122ab6fc4f0679b /src/displayapp/screens/Screen.h | |
| parent | e2d40847015006fb07ee23ea198df8c39b183b58 (diff) | |
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.
Diffstat (limited to 'src/displayapp/screens/Screen.h')
| -rw-r--r-- | src/displayapp/screens/Screen.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/displayapp/screens/Screen.h b/src/displayapp/screens/Screen.h index 73f80191..60d73e56 100644 --- a/src/displayapp/screens/Screen.h +++ b/src/displayapp/screens/Screen.h @@ -50,9 +50,11 @@ namespace Pinetime { } public: - explicit Screen(DisplayApp* app) : app {app} { + explicit Screen(DisplayApp* app) { } + explicit Screen() = default; + virtual ~Screen() = default; static void RefreshTaskCallback(lv_task_t* task); @@ -77,7 +79,6 @@ namespace Pinetime { } protected: - DisplayApp* app; bool running = true; }; } |
