Skip to content

Commit

Permalink
Remove duplicate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 6, 2024
1 parent df1c1f3 commit 1910a2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analysis/processing/qgsalgorithmrasterminmax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ QgsRasterMinMaxAlgorithm *QgsRasterMinMaxAlgorithm::createInstance() const
bool QgsRasterMinMaxAlgorithm::prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback * )
{
QgsRasterLayer *layer = parameterAsRasterLayer( parameters, QStringLiteral( "INPUT" ), context );
const int band = parameterAsInt( parameters, QStringLiteral( "BAND" ), context );

if ( !layer )
throw QgsProcessingException( invalidRasterError( parameters, QStringLiteral( "INPUT" ) ) );
Expand All @@ -94,7 +93,7 @@ bool QgsRasterMinMaxAlgorithm::prepareAlgorithm( const QVariantMap &parameters,
.arg( layer->bandCount() ) );

mInterface.reset( layer->dataProvider()->clone() );
mHasNoDataValue = layer->dataProvider()->sourceHasNoDataValue( band );
mHasNoDataValue = layer->dataProvider()->sourceHasNoDataValue( mBand );
mLayerWidth = layer->width();
mLayerHeight = layer->height();
mExtent = layer->extent();
Expand Down

0 comments on commit 1910a2b

Please sign in to comment.