Skip to content

Commit

Permalink
Fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 18, 2024
1 parent de90261 commit 986a859
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/raster/qgsresamplingutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void QgsResamplingUtils::refreshLayerFromWidgets()
{
std::unique_ptr<QgsRasterResampler> zoomedInResampler;

// NOLINTBEGIN(bugprone-branch-clone)
switch ( zoomedInMethod )
{
case Qgis::RasterResamplingMethod::Nearest:
Expand All @@ -177,12 +178,14 @@ void QgsResamplingUtils::refreshLayerFromWidgets()
// not supported as late resampler methods
break;
}
// NOLINTEND(bugprone-branch-clone)

resampleFilter->setZoomedInResampler( zoomedInResampler.release() );

//raster resampling
std::unique_ptr<QgsRasterResampler> zoomedOutResampler;

// NOLINTBEGIN(bugprone-branch-clone)
switch ( zoomedOutMethod )
{
case Qgis::RasterResamplingMethod::Nearest:
Expand All @@ -205,6 +208,7 @@ void QgsResamplingUtils::refreshLayerFromWidgets()
// not supported as late resampler methods
break;
}
// NOLINTEND(bugprone-branch-clone)

resampleFilter->setZoomedOutResampler( zoomedOutResampler.release() );

Expand Down

0 comments on commit 986a859

Please sign in to comment.