diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-02-23 22:16:44 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-02-24 17:41:41 +0200 |
| commit | 1c4b97382a97a8d2222b3062e12d41aa24d4686f (patch) | |
| tree | de23915bbcd11def5f59563d98d2f37b403f7e0e /src/displayapp/screens/BatteryInfo.h | |
| parent | 1516b082fd75a1c68d98862199bd349175d37a8f (diff) | |
displayapp: Make Battery class references const
Diffstat (limited to 'src/displayapp/screens/BatteryInfo.h')
| -rw-r--r-- | src/displayapp/screens/BatteryInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/BatteryInfo.h b/src/displayapp/screens/BatteryInfo.h index de34cdff..2c32cebb 100644 --- a/src/displayapp/screens/BatteryInfo.h +++ b/src/displayapp/screens/BatteryInfo.h @@ -14,13 +14,13 @@ namespace Pinetime { class BatteryInfo : public Screen { public: - BatteryInfo(DisplayApp* app, Pinetime::Controllers::Battery& batteryController); + BatteryInfo(DisplayApp* app, const Pinetime::Controllers::Battery& batteryController); ~BatteryInfo() override; void Refresh() override; private: - Pinetime::Controllers::Battery& batteryController; + const Pinetime::Controllers::Battery& batteryController; lv_obj_t* voltage; lv_obj_t* percent; |
