mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
Fix cppcheck errors
This commit is contained in:
parent
7c65196b9f
commit
59a76430dc
@ -50,7 +50,7 @@ Returns the minimum value for the raster shader.
|
|||||||
int *returnRedValue /Out/,
|
int *returnRedValue /Out/,
|
||||||
int *returnGreenValue /Out/,
|
int *returnGreenValue /Out/,
|
||||||
int *returnBlueValue /Out/,
|
int *returnBlueValue /Out/,
|
||||||
int *returnAlpha /Out/ );
|
int *returnAlpha /Out/ ) const;
|
||||||
%Docstring
|
%Docstring
|
||||||
Generates a new RGBA value based on one input ``value``.
|
Generates a new RGBA value based on one input ``value``.
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ Returns the minimum value for the raster shader.
|
|||||||
int *returnRedValue /Out/,
|
int *returnRedValue /Out/,
|
||||||
int *returnGreenValue /Out/,
|
int *returnGreenValue /Out/,
|
||||||
int *returnBlueValue /Out/,
|
int *returnBlueValue /Out/,
|
||||||
int *returnAlpha /Out/ );
|
int *returnAlpha /Out/ ) const;
|
||||||
%Docstring
|
%Docstring
|
||||||
Generates a new RGBA value based on one input ``value``.
|
Generates a new RGBA value based on one input ``value``.
|
||||||
|
|
||||||
|
|||||||
@ -241,7 +241,7 @@ qint64 QgsCopcPointCloudIndex::pointCount() const
|
|||||||
return mLazInfo->pointCount();
|
return mLazInfo->pointCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QgsCopcPointCloudIndex::loadHierarchy()
|
bool QgsCopcPointCloudIndex::loadHierarchy() const
|
||||||
{
|
{
|
||||||
fetchHierarchyPage( mCopcInfoVlr.root_hier_offset, mCopcInfoVlr.root_hier_size );
|
fetchHierarchyPage( mCopcInfoVlr.root_hier_offset, mCopcInfoVlr.root_hier_size );
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -93,7 +93,7 @@ class CORE_EXPORT QgsCopcPointCloudIndex: public QgsPointCloudIndex
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool loadSchema( QgsLazInfo &lazInfo );
|
bool loadSchema( QgsLazInfo &lazInfo );
|
||||||
bool loadHierarchy();
|
bool loadHierarchy() const;
|
||||||
|
|
||||||
//! Fetches all nodes leading to node \a node into memory
|
//! Fetches all nodes leading to node \a node into memory
|
||||||
bool fetchNodeHierarchy( const QgsPointCloudNodeId &n ) const;
|
bool fetchNodeHierarchy( const QgsPointCloudNodeId &n ) const;
|
||||||
|
|||||||
@ -286,7 +286,7 @@ QgsPointCloudBlock *QgsPointCloudIndex::getNodeDataFromCache( const QgsPointClou
|
|||||||
return cached ? cached->clone() : nullptr;
|
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 );
|
storeNodeDataToCacheStatic( data, node, request, mFilterExpression, mUri );
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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.
|
* 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.
|
* 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.
|
||||||
|
|||||||
@ -33,7 +33,7 @@ QgsRasterShader::QgsRasterShader( double minimumValue, double maximumValue )
|
|||||||
QgsDebugMsgLevel( QStringLiteral( "called." ), 4 );
|
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 )
|
if ( mRasterShaderFunction )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class CORE_EXPORT QgsRasterShader
|
|||||||
int *returnRedValue SIP_OUT,
|
int *returnRedValue SIP_OUT,
|
||||||
int *returnGreenValue SIP_OUT,
|
int *returnGreenValue SIP_OUT,
|
||||||
int *returnBlueValue 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.
|
* Generates a new RGBA value based on an original RGBA value.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user