Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Silence cppcheck false positive
  • Loading branch information
nyalldawson committed Apr 18, 2023
1 parent b94f9b9 commit 4ebcad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/grass/qgsgrassgislib.cpp
Expand Up @@ -604,6 +604,7 @@ int QgsGrassGisLib::G_open_raster_new( const char *name, RASTER_MAP_TYPE wr_type
raster.band = 1;
raster.noDataValue = noDataValueForGrassType( wr_type );
QgsDebugMsg( QString( "noDataValue = %1" ).arg( static_cast<int>( raster.noDataValue ) ) );
// cppcheck-suppress deallocuse
raster.provider->setNoDataValue( raster.band, raster.noDataValue );

raster.fd = mRasters.size();
Expand Down

0 comments on commit 4ebcad5

Please sign in to comment.