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.cpp | |
| parent | 1516b082fd75a1c68d98862199bd349175d37a8f (diff) | |
displayapp: Make Battery class references const
Diffstat (limited to 'src/displayapp/screens/BatteryInfo.cpp')
| -rw-r--r-- | src/displayapp/screens/BatteryInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/BatteryInfo.cpp b/src/displayapp/screens/BatteryInfo.cpp index 87d1f2e1..9d1d3bf3 100644 --- a/src/displayapp/screens/BatteryInfo.cpp +++ b/src/displayapp/screens/BatteryInfo.cpp @@ -5,7 +5,7 @@ using namespace Pinetime::Applications::Screens; -BatteryInfo::BatteryInfo(Pinetime::Applications::DisplayApp* app, Pinetime::Controllers::Battery& batteryController) +BatteryInfo::BatteryInfo(Pinetime::Applications::DisplayApp* app, const Pinetime::Controllers::Battery& batteryController) : Screen(app), batteryController {batteryController} { batteryPercent = batteryController.PercentRemaining(); |
