From 32d223baf1932591d4f0aff48121c290a7a15ad0 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sat, 14 Dec 2024 08:28:48 +1000 Subject: [PATCH] Fix cppcheck error --- python/PyQt6/core/auto_generated/raster/qgsrastershader.sip.in | 2 +- python/core/auto_generated/raster/qgsrastershader.sip.in | 2 +- src/core/raster/qgsrastershader.cpp | 2 +- src/core/raster/qgsrastershader.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/PyQt6/core/auto_generated/raster/qgsrastershader.sip.in b/python/PyQt6/core/auto_generated/raster/qgsrastershader.sip.in index e138616b2b18..03449906e748 100644 --- a/python/PyQt6/core/auto_generated/raster/qgsrastershader.sip.in +++ b/python/PyQt6/core/auto_generated/raster/qgsrastershader.sip.in @@ -50,7 +50,7 @@ Returns the minimum value for the raster shader. int *returnRedValue /Out/, int *returnGreenValue /Out/, int *returnBlueValue /Out/, - int *returnAlpha /Out/ ); + int *returnAlpha /Out/ ) const; %Docstring Generates a new RGBA value based on one input ``value``. diff --git a/python/core/auto_generated/raster/qgsrastershader.sip.in b/python/core/auto_generated/raster/qgsrastershader.sip.in index e138616b2b18..03449906e748 100644 --- a/python/core/auto_generated/raster/qgsrastershader.sip.in +++ b/python/core/auto_generated/raster/qgsrastershader.sip.in @@ -50,7 +50,7 @@ Returns the minimum value for the raster shader. int *returnRedValue /Out/, int *returnGreenValue /Out/, int *returnBlueValue /Out/, - int *returnAlpha /Out/ ); + int *returnAlpha /Out/ ) const; %Docstring Generates a new RGBA value based on one input ``value``. diff --git a/src/core/raster/qgsrastershader.cpp b/src/core/raster/qgsrastershader.cpp index 6657758433ea..230f6f40940e 100644 --- a/src/core/raster/qgsrastershader.cpp +++ b/src/core/raster/qgsrastershader.cpp @@ -33,7 +33,7 @@ QgsRasterShader::QgsRasterShader( double minimumValue, double maximumValue ) QgsDebugMsgLevel( QStringLiteral( "called." ), 4 ); } -bool QgsRasterShader::shade( double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha ) +bool QgsRasterShader::shade( double value, int *returnRedValue, int *returnGreenValue, int *returnBlueValue, int *returnAlpha ) const { if ( mRasterShaderFunction ) { diff --git a/src/core/raster/qgsrastershader.h b/src/core/raster/qgsrastershader.h index d4b1a6a69fda..56b50acd5ff1 100644 --- a/src/core/raster/qgsrastershader.h +++ b/src/core/raster/qgsrastershader.h @@ -84,7 +84,7 @@ class CORE_EXPORT QgsRasterShader int *returnRedValue SIP_OUT, int *returnGreenValue SIP_OUT, int *returnBlueValue SIP_OUT, - int *returnAlpha SIP_OUT ); + int *returnAlpha SIP_OUT ) const; /** * Generates a new RGBA value based on an original RGBA value.