displayapp: Make Cst816S references const

This commit is contained in:
Riku Isokoski 2023-02-23 22:20:22 +02:00
parent 1c4b97382a
commit 76f07de64b
6 changed files with 8 additions and 8 deletions

View file

@ -61,7 +61,7 @@ namespace {
DisplayApp::DisplayApp(Drivers::St7789& lcd, DisplayApp::DisplayApp(Drivers::St7789& lcd,
Components::LittleVgl& lvgl, Components::LittleVgl& lvgl,
Drivers::Cst816S& touchPanel, const Drivers::Cst816S& touchPanel,
const Controllers::Battery& batteryController, const Controllers::Battery& batteryController,
Controllers::Ble& bleController, Controllers::Ble& bleController,
Controllers::DateTime& dateTimeController, Controllers::DateTime& dateTimeController,

View file

@ -53,7 +53,7 @@ namespace Pinetime {
DisplayApp(Drivers::St7789& lcd, DisplayApp(Drivers::St7789& lcd,
Components::LittleVgl& lvgl, Components::LittleVgl& lvgl,
Drivers::Cst816S&, const Drivers::Cst816S&,
const Controllers::Battery& batteryController, const Controllers::Battery& batteryController,
Controllers::Ble& bleController, Controllers::Ble& bleController,
Controllers::DateTime& dateTimeController, Controllers::DateTime& dateTimeController,
@ -80,7 +80,7 @@ namespace Pinetime {
private: private:
Pinetime::Drivers::St7789& lcd; Pinetime::Drivers::St7789& lcd;
Pinetime::Components::LittleVgl& lvgl; Pinetime::Components::LittleVgl& lvgl;
Pinetime::Drivers::Cst816S& touchPanel; const Pinetime::Drivers::Cst816S& touchPanel;
const Pinetime::Controllers::Battery& batteryController; const Pinetime::Controllers::Battery& batteryController;
Pinetime::Controllers::Ble& bleController; Pinetime::Controllers::Ble& bleController;
Pinetime::Controllers::DateTime& dateTimeController; Pinetime::Controllers::DateTime& dateTimeController;

View file

@ -12,7 +12,7 @@ using namespace Pinetime::Applications;
DisplayApp::DisplayApp(Drivers::St7789& lcd, DisplayApp::DisplayApp(Drivers::St7789& lcd,
Components::LittleVgl& /*lvgl*/, Components::LittleVgl& /*lvgl*/,
Drivers::Cst816S& /*touchPanel*/, const Drivers::Cst816S& /*touchPanel*/,
const Controllers::Battery& /*batteryController*/, const Controllers::Battery& /*batteryController*/,
Controllers::Ble& bleController, Controllers::Ble& bleController,
Controllers::DateTime& /*dateTimeController*/, Controllers::DateTime& /*dateTimeController*/,

View file

@ -48,7 +48,7 @@ namespace Pinetime {
public: public:
DisplayApp(Drivers::St7789& lcd, DisplayApp(Drivers::St7789& lcd,
Components::LittleVgl& lvgl, Components::LittleVgl& lvgl,
Drivers::Cst816S&, const Drivers::Cst816S&,
const Controllers::Battery& batteryController, const Controllers::Battery& batteryController,
Controllers::Ble& bleController, Controllers::Ble& bleController,
Controllers::DateTime& dateTimeController, Controllers::DateTime& dateTimeController,

View file

@ -37,7 +37,7 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
Pinetime::Controllers::Ble& bleController, Pinetime::Controllers::Ble& bleController,
Pinetime::Drivers::WatchdogView& watchdog, Pinetime::Drivers::WatchdogView& watchdog,
Pinetime::Controllers::MotionController& motionController, Pinetime::Controllers::MotionController& motionController,
Pinetime::Drivers::Cst816S& touchPanel) const Pinetime::Drivers::Cst816S& touchPanel)
: Screen(app), : Screen(app),
dateTimeController {dateTimeController}, dateTimeController {dateTimeController},
batteryController {batteryController}, batteryController {batteryController},

View file

@ -29,7 +29,7 @@ namespace Pinetime {
Pinetime::Controllers::Ble& bleController, Pinetime::Controllers::Ble& bleController,
Pinetime::Drivers::WatchdogView& watchdog, Pinetime::Drivers::WatchdogView& watchdog,
Pinetime::Controllers::MotionController& motionController, Pinetime::Controllers::MotionController& motionController,
Pinetime::Drivers::Cst816S& touchPanel); const Pinetime::Drivers::Cst816S& touchPanel);
~SystemInfo() override; ~SystemInfo() override;
bool OnTouchEvent(TouchEvents event) override; bool OnTouchEvent(TouchEvents event) override;
@ -40,7 +40,7 @@ namespace Pinetime {
Pinetime::Controllers::Ble& bleController; Pinetime::Controllers::Ble& bleController;
Pinetime::Drivers::WatchdogView& watchdog; Pinetime::Drivers::WatchdogView& watchdog;
Pinetime::Controllers::MotionController& motionController; Pinetime::Controllers::MotionController& motionController;
Pinetime::Drivers::Cst816S& touchPanel; const Pinetime::Drivers::Cst816S& touchPanel;
ScreenList<5> screens; ScreenList<5> screens;