Make struct dive const in plotPicturesInternal

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2019-02-03 13:28:33 +01:00
parent 5248820bbf
commit 041d38cc0e
2 changed files with 2 additions and 2 deletions

View file

@ -2231,7 +2231,7 @@ void ProfileWidget2::plotPictures()
plotPicturesInternal(current_dive, false);
}
void ProfileWidget2::plotPicturesInternal(struct dive *d, bool synchronous)
void ProfileWidget2::plotPicturesInternal(const struct dive *d, bool synchronous)
{
pictures.clear();
if (currentState == ADD || currentState == PLAN)

View file

@ -173,7 +173,7 @@ private: /*methods*/
void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert,
const double *thresholdSettingsMin, const double *thresholdSettingsMax);
void clearPictures();
void plotPicturesInternal(struct dive *d, bool synchronous);
void plotPicturesInternal(const struct dive *d, bool synchronous);
private:
DivePlotDataModel *dataModel;
int zoomLevel;