Skip to content

Commit

Permalink
Fix use of deleted function for QgsLinearMinMaxEnhancementWithClip
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Jun 11, 2020
1 parent 39b63cb commit 7ac386b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Expand Up @@ -82,6 +82,8 @@ Returns the minimum value.



private:
QgsContrastEnhancementFunction &operator=( const QgsContrastEnhancementFunction & );
};

/************************************************************************
Expand Down
Expand Up @@ -27,6 +27,9 @@ linearly between min and max.

virtual bool isValueInDisplayableRange( double );


private:
QgsLinearMinMaxEnhancementWithClip &operator=( const QgsLinearMinMaxEnhancementWithClip & );
};

/************************************************************************
Expand Down
4 changes: 3 additions & 1 deletion src/core/raster/qgscontrastenhancementfunction.h
Expand Up @@ -94,7 +94,9 @@ class CORE_EXPORT QgsContrastEnhancementFunction
double mMinimumValuePossible = std::numeric_limits< double >::lowest() SIP_SKIP;

private:
QgsContrastEnhancementFunction &operator=( const QgsContrastEnhancementFunction & ) = delete;
#ifdef SIP_RUN
QgsContrastEnhancementFunction &operator=( const QgsContrastEnhancementFunction & );
#endif
};

#endif
5 changes: 5 additions & 0 deletions src/core/raster/qgslinearminmaxenhancementwithclip.h
Expand Up @@ -36,6 +36,11 @@ class CORE_EXPORT QgsLinearMinMaxEnhancementWithClip : public QgsContrastEnhance
int enhance( double ) override;

bool isValueInDisplayableRange( double ) override;

private:
#ifdef SIP_RUN
QgsLinearMinMaxEnhancementWithClip &operator=( const QgsLinearMinMaxEnhancementWithClip & );
#endif
};

#endif

0 comments on commit 7ac386b

Please sign in to comment.