Skip to content

Commit

Permalink
fix cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 3, 2020
1 parent 015f306 commit f925569
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/3d/qgspointcloudlayerchunkloader_p.cpp
Expand Up @@ -119,11 +119,10 @@ void QgsPointCloud3DSymbolHandler::processNode( QgsPointCloudIndex *pc, const In
if ( mSymbol.get()->renderingStyle() == QgsPointCloud3DSymbol::ColorRamp )
{
QgsColorRampPointCloud3DSymbol *symbol = dynamic_cast<QgsColorRampPointCloud3DSymbol *>( mSymbol.get() );
QgsPointCloudLayer *layer = symbol->layer();
if ( symbol && layer )
if ( symbol && symbol->layer() )
{
int offset = 0;
const QgsPointCloudAttribute *attr = layer->attributes().find( symbol->renderingParameter(), offset );
const QgsPointCloudAttribute *attr = symbol->layer()->attributes().find( symbol->renderingParameter(), offset );
if ( attr )
{
parameterAttribute.reset( new QgsPointCloudAttribute( attr->name(), attr->type() ) );
Expand All @@ -132,8 +131,6 @@ void QgsPointCloud3DSymbolHandler::processNode( QgsPointCloudIndex *pc, const In
}
}


// attributes.push_back( QgsPointCloudAttribute( QStringLiteral( "Classification" ), QgsPointCloudAttribute::Char ) );
QgsPointCloudRequest request;
request.setAttributes( attributes );
std::unique_ptr<QgsPointCloudBlock> block( pc->nodeData( n, request ) );
Expand Down

0 comments on commit f925569

Please sign in to comment.