Skip to content

Commit

Permalink
Fix cppcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 14, 2024
1 parent ac3faf3 commit 32d223b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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``.

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/raster/qgsrastershader.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -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``.

Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrastershader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrastershader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 32d223b

Please sign in to comment.