Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cppcheck errors #59889

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/pointcloud/qgscopcpointcloudindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ qint64 QgsCopcPointCloudIndex::pointCount() const
return mLazInfo->pointCount();
}

bool QgsCopcPointCloudIndex::loadHierarchy()
bool QgsCopcPointCloudIndex::loadHierarchy() const
{
fetchHierarchyPage( mCopcInfoVlr.root_hier_offset, mCopcInfoVlr.root_hier_size );
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgscopcpointcloudindex.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class CORE_EXPORT QgsCopcPointCloudIndex: public QgsPointCloudIndex

protected:
bool loadSchema( QgsLazInfo &lazInfo );
bool loadHierarchy();
bool loadHierarchy() const;

//! Fetches all nodes leading to node \a node into memory
bool fetchNodeHierarchy( const QgsPointCloudNodeId &n ) const;
Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ QgsPointCloudBlock *QgsPointCloudIndex::getNodeDataFromCache( const QgsPointClou
return cached ? cached->clone() : nullptr;
}

void QgsPointCloudIndex::storeNodeDataToCache( QgsPointCloudBlock *data, const QgsPointCloudNodeId &node, const QgsPointCloudRequest &request )
void QgsPointCloudIndex::storeNodeDataToCache( QgsPointCloudBlock *data, const QgsPointCloudNodeId &node, const QgsPointCloudRequest &request ) const
{
storeNodeDataToCacheStatic( data, node, request, mFilterExpression, mUri );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudindex.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class CORE_EXPORT QgsPointCloudIndex
/**
* Stores existing \a data to the cache for the specified \a node and \a request. Ownership is not transferred, block gets cloned in the cache.
*/
void storeNodeDataToCache( QgsPointCloudBlock *data, const QgsPointCloudNodeId &node, const QgsPointCloudRequest &request );
void storeNodeDataToCache( QgsPointCloudBlock *data, const QgsPointCloudNodeId &node, const QgsPointCloudRequest &request ) const;

/**
* Stores existing \a data to the cache for the specified \a node, \a request, \a expression and \a uri. Ownership is not transferred, block gets cloned in the cache.
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
Loading