From db57a633d587444a7196c8d4274b8f327e77ceba Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 2 Sep 2018 22:26:19 +0200 Subject: Cleanup: constify threshold pointers in DiveProfileItem These were pointers into the global prefs object. The user must not use these to modify the settings, therefore make them pointers-to-const. Signed-off-by: Berthold Stoeger --- profile-widget/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/diveprofileitem.cpp') diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index 932586f12..ef47b0d59 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -999,7 +999,7 @@ void PartialPressureGasItem::paint(QPainter *painter, const QStyleOptionGraphics painter->restore(); } -void PartialPressureGasItem::setThresholdSettingsKey(double *prefPointerMin, double *prefPointerMax) +void PartialPressureGasItem::setThresholdSettingsKey(const double *prefPointerMin, const double *prefPointerMax) { thresholdPtrMin = prefPointerMin; thresholdPtrMax = prefPointerMax; -- cgit v1.2.3-70-g09d2