aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2024-09-29 19:39:14 +0200
committerGitHub <noreply@github.com>2024-09-29 19:39:14 +0200
commit3db4e012ceb38602912edad75ccbbcd8834bcae6 (patch)
tree6e81aeef0e7f6d0a2995f6ccd7b495899c3dea2a /src/displayapp/DisplayApp.cpp
parenta0cd439efc9b0d0d9610dea7ff749f102d5a316d (diff)
Remove unused pointer to DisplayApp member variables (#2125)
In the screens that use `DisplayApp *app` and pass it to a child item, or use the reference just in the constructor. Afterwards the `app` member is not used. So remove it from the private member variables. Completely remove `app` parameter from `SettingDisplay` constructor as it is unused.
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index 076b4f8a..ff43bb81 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -582,7 +582,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
currentScreen = std::make_unique<Screens::SettingWakeUp>(settingsController);
break;
case Apps::SettingDisplay:
- currentScreen = std::make_unique<Screens::SettingDisplay>(this, settingsController);
+ currentScreen = std::make_unique<Screens::SettingDisplay>(settingsController);
break;
case Apps::SettingSteps:
currentScreen = std::make_unique<Screens::SettingSteps>(settingsController);