From ee88455f696376408e97c44add762d0058b6f22c Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 9 Dec 2024 08:20:12 +1000 Subject: [PATCH] Style --- src/gui/raster/qgsrasterlabelingwidget.cpp | 4 ++-- src/gui/raster/qgsrasterlabelsettingswidget.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/raster/qgsrasterlabelingwidget.cpp b/src/gui/raster/qgsrasterlabelingwidget.cpp index 47ffb94136cce..ac94f9aea1ba2 100644 --- a/src/gui/raster/qgsrasterlabelingwidget.cpp +++ b/src/gui/raster/qgsrasterlabelingwidget.cpp @@ -152,9 +152,9 @@ void QgsRasterLabelingWidget::labelModeChanged( int index ) connect( settingsWidget, &QgsLabelingGui::widgetChanged, this, &QgsRasterLabelingWidget::widgetChanged ); mWidget = settingsWidget; - if ( !dynamic_cast< QgsRasterLayerSimpleLabeling * >( mLayer->labeling() ) ) + if ( !dynamic_cast( mLayer->labeling() ) ) { - std::unique_ptr< QgsRasterLayerSimpleLabeling > labeling = std::make_unique< QgsRasterLayerSimpleLabeling >(); + std::unique_ptr labeling = std::make_unique(); settingsWidget->setLabeling( labeling.get() ); mLayer->setLabeling( labeling.release() ); } diff --git a/src/gui/raster/qgsrasterlabelsettingswidget.cpp b/src/gui/raster/qgsrasterlabelsettingswidget.cpp index 301e149b3e002..592dff769d083 100644 --- a/src/gui/raster/qgsrasterlabelsettingswidget.cpp +++ b/src/gui/raster/qgsrasterlabelsettingswidget.cpp @@ -148,7 +148,7 @@ void QgsRasterLabelSettingsWidget::setLabeling( QgsAbstractRasterLayerLabeling * { setFormat( simpleLabeling->textFormat() ); mBandCombo->setBand( simpleLabeling->band() ); - mPrioritySlider->setValue( static_cast< int >( 100 - simpleLabeling->priority() * 100 ) ); + mPrioritySlider->setValue( static_cast( 100 - simpleLabeling->priority() * 100 ) ); mComboOverlapHandling->setCurrentIndex( mComboOverlapHandling->findData( static_cast( simpleLabeling->placementSettings().overlapHandling() ) ) ); mZIndexSpinBox->setValue( simpleLabeling->zIndex() );