Skip to content

Commit bf413bc

Browse files
committedFeb 2, 2018
Fix clazy return void warnings
1 parent 7761360 commit bf413bc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎src/analysis/vector/qgsgeometrysnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ANALYSIS_EXPORT QgsGeometrySnapper : public QObject
9696
, snapTolerance( snapTolerance )
9797
, mode( mode )
9898
{}
99-
void operator()( QgsFeature &feature ) { return instance->processFeature( feature, snapTolerance, mode ); }
99+
void operator()( QgsFeature &feature ) { instance->processFeature( feature, snapTolerance, mode ); }
100100
};
101101

102102
enum PointFlag { SnappedToRefNode, SnappedToRefSegment, Unsnapped };

‎src/core/qgssettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ QString QgsSettings::fileName() const
189189

190190
void QgsSettings::sync()
191191
{
192-
return mUserSettings->sync();
192+
mUserSettings->sync();
193193
}
194194

195195
void QgsSettings::remove( const QString &key, const QgsSettings::Section section )

‎src/core/symbology/qgspointdistancerenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void QgsPointDistanceRenderer::checkLegendSymbolItem( const QString &key, bool s
193193
if ( !mRenderer )
194194
return;
195195

196-
return mRenderer->checkLegendSymbolItem( key, state );
196+
mRenderer->checkLegendSymbolItem( key, state );
197197
}
198198

199199
QString QgsPointDistanceRenderer::filter( const QgsFields &fields )

‎src/gui/qgsrasterlayersaveasdialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class GUI_EXPORT QgsRasterLayerSaveAsDialog: public QDialog, private Ui::QgsRast
8787
void hideOutput();
8888

8989
public slots:
90-
void accept() override { if ( validate() ) return QDialog::accept(); }
90+
void accept() override { if ( validate() ) QDialog::accept(); }
9191

9292
private slots:
9393
void mRawModeRadioButton_toggled( bool );

‎src/gui/qgsscalewidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ void QgsScaleWidget::setScaleFromCanvas()
6161

6262
void QgsScaleWidget::setScale( double scale )
6363
{
64-
return mScaleComboBox->setScale( scale );
64+
mScaleComboBox->setScale( scale );
6565
}

0 commit comments

Comments
 (0)
Please sign in to comment.