displayapp: Make Cst816S references const
This commit is contained in:
parent
1c4b97382a
commit
76f07de64b
|
@ -61,7 +61,7 @@ namespace {
|
|||
|
||||
DisplayApp::DisplayApp(Drivers::St7789& lcd,
|
||||
Components::LittleVgl& lvgl,
|
||||
Drivers::Cst816S& touchPanel,
|
||||
const Drivers::Cst816S& touchPanel,
|
||||
const Controllers::Battery& batteryController,
|
||||
Controllers::Ble& bleController,
|
||||
Controllers::DateTime& dateTimeController,
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace Pinetime {
|
|||
|
||||
DisplayApp(Drivers::St7789& lcd,
|
||||
Components::LittleVgl& lvgl,
|
||||
Drivers::Cst816S&,
|
||||
const Drivers::Cst816S&,
|
||||
const Controllers::Battery& batteryController,
|
||||
Controllers::Ble& bleController,
|
||||
Controllers::DateTime& dateTimeController,
|
||||
|
@ -80,7 +80,7 @@ namespace Pinetime {
|
|||
private:
|
||||
Pinetime::Drivers::St7789& lcd;
|
||||
Pinetime::Components::LittleVgl& lvgl;
|
||||
Pinetime::Drivers::Cst816S& touchPanel;
|
||||
const Pinetime::Drivers::Cst816S& touchPanel;
|
||||
const Pinetime::Controllers::Battery& batteryController;
|
||||
Pinetime::Controllers::Ble& bleController;
|
||||
Pinetime::Controllers::DateTime& dateTimeController;
|
||||
|
|
|
@ -12,7 +12,7 @@ using namespace Pinetime::Applications;
|
|||
|
||||
DisplayApp::DisplayApp(Drivers::St7789& lcd,
|
||||
Components::LittleVgl& /*lvgl*/,
|
||||
Drivers::Cst816S& /*touchPanel*/,
|
||||
const Drivers::Cst816S& /*touchPanel*/,
|
||||
const Controllers::Battery& /*batteryController*/,
|
||||
Controllers::Ble& bleController,
|
||||
Controllers::DateTime& /*dateTimeController*/,
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Pinetime {
|
|||
public:
|
||||
DisplayApp(Drivers::St7789& lcd,
|
||||
Components::LittleVgl& lvgl,
|
||||
Drivers::Cst816S&,
|
||||
const Drivers::Cst816S&,
|
||||
const Controllers::Battery& batteryController,
|
||||
Controllers::Ble& bleController,
|
||||
Controllers::DateTime& dateTimeController,
|
||||
|
|
|
@ -37,7 +37,7 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
|
|||
Pinetime::Controllers::Ble& bleController,
|
||||
Pinetime::Drivers::WatchdogView& watchdog,
|
||||
Pinetime::Controllers::MotionController& motionController,
|
||||
Pinetime::Drivers::Cst816S& touchPanel)
|
||||
const Pinetime::Drivers::Cst816S& touchPanel)
|
||||
: Screen(app),
|
||||
dateTimeController {dateTimeController},
|
||||
batteryController {batteryController},
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace Pinetime {
|
|||
Pinetime::Controllers::Ble& bleController,
|
||||
Pinetime::Drivers::WatchdogView& watchdog,
|
||||
Pinetime::Controllers::MotionController& motionController,
|
||||
Pinetime::Drivers::Cst816S& touchPanel);
|
||||
const Pinetime::Drivers::Cst816S& touchPanel);
|
||||
~SystemInfo() override;
|
||||
bool OnTouchEvent(TouchEvents event) override;
|
||||
|
||||
|
@ -40,7 +40,7 @@ namespace Pinetime {
|
|||
Pinetime::Controllers::Ble& bleController;
|
||||
Pinetime::Drivers::WatchdogView& watchdog;
|
||||
Pinetime::Controllers::MotionController& motionController;
|
||||
Pinetime::Drivers::Cst816S& touchPanel;
|
||||
const Pinetime::Drivers::Cst816S& touchPanel;
|
||||
|
||||
ScreenList<5> screens;
|
||||
|
||||
|
|
Loading…
Reference in a new issue