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/profilewidget2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/profilewidget2.h') diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 170019269..b7cdc8e66 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -171,7 +171,7 @@ private: /*methods*/ struct plot_data *getEntryFromPos(QPointF pos); void addActionShortcut(const Qt::Key shortcut, void (ProfileWidget2::*slot)()); void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert, - double *thresholdSettingsMin, double *thresholdSettingsMax); + const double *thresholdSettingsMin, const double *thresholdSettingsMax); void clearPictures(); private: DivePlotDataModel *dataModel; -- cgit v1.2.3-70-g09d2