diff --git a/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.h b/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.h index d27ee46e03174e4223aadf40bef668fe9536bd5c..cc803f7f99c676876321038a51b56aa255efcedb 100644 --- a/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.h +++ b/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.h @@ -117,7 +117,7 @@ protected: /** Call the superclass implementation and set the TablesHaveBeenGenerated * flag to false */ - virtual void Modified(void); + virtual void Modified(void) const; /** Delete tables.*/ virtual void ResetOffsetTable(); diff --git a/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.txx b/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.txx index 5d8b8549b69cc89d6ed3d06922df1204ca30fa53..2fc1e462c999faee4fbb1f68dddb4c0cc1cf00a1 100644 --- a/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.txx +++ b/Modules/Core/Interpolation/include/otbGenericInterpolateImageFunction.txx @@ -83,7 +83,7 @@ GenericInterpolateImageFunction<TInputImage, TFunction, TBoundaryCondition, TCoo template<class TInputImage, class TFunction, class TBoundaryCondition, class TCoordRep> void GenericInterpolateImageFunction<TInputImage, TFunction, TBoundaryCondition, TCoordRep> -::Modified() +::Modified() const { Superclass::Modified(); m_TablesHaveBeenGenerated = false; diff --git a/Modules/Radiometry/Simulation/include/otbProspectModel.h b/Modules/Radiometry/Simulation/include/otbProspectModel.h index 6364f5d2cdffdecebac16a97e82a731d2f375230..46ea07036bc74fe04eee3eb1235f713349f2d0ef 100644 --- a/Modules/Radiometry/Simulation/include/otbProspectModel.h +++ b/Modules/Radiometry/Simulation/include/otbProspectModel.h @@ -55,6 +55,7 @@ class ITK_EXPORT ProspectModel : public SimulationStep1Base itkTypeMacro(ProspectModel, SpectrumGeneratorBase); /** Set/Get Input */ + using Superclass::SetInput; virtual void SetInput(const ParametersType &); void SetInput(const LeafParametersType *object); LeafParametersType * GetInput();