diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-09-02 22:26:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-07 11:03:30 -0700 |
commit | db57a633d587444a7196c8d4274b8f327e77ceba (patch) | |
tree | 3ccb04e003b34219276e06382a24d5b6a900f6d6 /profile-widget/profilewidget2.cpp | |
parent | 2bd0c2143ecfca36ffa38b48d89dad7c57634ea9 (diff) | |
download | subsurface-db57a633d587444a7196c8d4274b8f327e77ceba.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index ac1af3951..ee462e8f5 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -378,7 +378,7 @@ void ProfileWidget2::replot(struct dive *d) } void ProfileWidget2::createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert, - double *thresholdSettingsMin, double *thresholdSettingsMax) + const double *thresholdSettingsMin, const double *thresholdSettingsMax) { setupItem(item, gasYAxis, verticalColumn, DivePlotDataModel::TIME, 0); item->setThresholdSettingsKey(thresholdSettingsMin, thresholdSettingsMax); |