From df1c1f30ef8bb273af7049069cfd290b64d4446e Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 5 Nov 2024 15:22:21 +1100 Subject: [PATCH] Fix clang-tidy warning --- src/core/raster/qgsrasteriterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/raster/qgsrasteriterator.cpp b/src/core/raster/qgsrasteriterator.cpp index f32f9eeb190d..445fc27ea879 100644 --- a/src/core/raster/qgsrasteriterator.cpp +++ b/src/core/raster/qgsrasteriterator.cpp @@ -232,7 +232,7 @@ double QgsRasterIterator::progress( int bandNumber ) const return 0; } - return ( ( partIt->currentRow / static_cast< double >( mMaximumTileHeight ) ) * mNumberBlocksWidth + partIt->currentCol / static_cast< double >( mMaximumTileWidth ) ) / ( static_cast< double >( mNumberBlocksWidth ) * static_cast< double >( mNumberBlocksHeight ) ); + return ( ( static_cast< double >( partIt->currentRow ) / static_cast< double >( mMaximumTileHeight ) ) * mNumberBlocksWidth + static_cast< double >( partIt->currentCol ) / static_cast< double >( mMaximumTileWidth ) ) / ( static_cast< double >( mNumberBlocksWidth ) * static_cast< double >( mNumberBlocksHeight ) ); } void QgsRasterIterator::removePartInfo( int bandNumber )