From 1c4b97382a97a8d2222b3062e12d41aa24d4686f Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Thu, 23 Feb 2023 22:16:44 +0200 Subject: displayapp: Make Battery class references const --- src/displayapp/screens/BatteryInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/displayapp/screens/BatteryInfo.cpp') 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(); -- cgit v1.2.3-70-g09d2