mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make struct dive const in plotPicturesInternal
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
5248820bbf
commit
041d38cc0e
2 changed files with 2 additions and 2 deletions
|
@ -2231,7 +2231,7 @@ void ProfileWidget2::plotPictures()
|
||||||
plotPicturesInternal(current_dive, false);
|
plotPicturesInternal(current_dive, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProfileWidget2::plotPicturesInternal(struct dive *d, bool synchronous)
|
void ProfileWidget2::plotPicturesInternal(const struct dive *d, bool synchronous)
|
||||||
{
|
{
|
||||||
pictures.clear();
|
pictures.clear();
|
||||||
if (currentState == ADD || currentState == PLAN)
|
if (currentState == ADD || currentState == PLAN)
|
||||||
|
|
|
@ -173,7 +173,7 @@ private: /*methods*/
|
||||||
void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert,
|
void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert,
|
||||||
const double *thresholdSettingsMin, const double *thresholdSettingsMax);
|
const double *thresholdSettingsMin, const double *thresholdSettingsMax);
|
||||||
void clearPictures();
|
void clearPictures();
|
||||||
void plotPicturesInternal(struct dive *d, bool synchronous);
|
void plotPicturesInternal(const struct dive *d, bool synchronous);
|
||||||
private:
|
private:
|
||||||
DivePlotDataModel *dataModel;
|
DivePlotDataModel *dataModel;
|
||||||
int zoomLevel;
|
int zoomLevel;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue