displayapp: Make Battery class references const
This commit is contained in:
parent
1516b082fd
commit
1c4b97382a
30 changed files with 41 additions and 41 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using namespace Pinetime::Applications::Widgets;
|
||||
|
||||
StatusIcons::StatusIcons(Controllers::Battery& batteryController, Controllers::Ble& bleController)
|
||||
StatusIcons::StatusIcons(const Controllers::Battery& batteryController, Controllers::Ble& bleController)
|
||||
: batteryController {batteryController}, bleController {bleController} {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Pinetime {
|
|||
namespace Widgets {
|
||||
class StatusIcons {
|
||||
public:
|
||||
StatusIcons(Controllers::Battery& batteryController, Controllers::Ble& bleController);
|
||||
StatusIcons(const Controllers::Battery& batteryController, Controllers::Ble& bleController);
|
||||
void Align();
|
||||
void Create();
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ namespace Pinetime {
|
|||
|
||||
private:
|
||||
Screens::BatteryIcon batteryIcon;
|
||||
Pinetime::Controllers::Battery& batteryController;
|
||||
const Pinetime::Controllers::Battery& batteryController;
|
||||
Controllers::Ble& bleController;
|
||||
|
||||
Screens::DirtyValue<uint8_t> batteryPercentRemaining {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue