Skip to content

Commit

Permalink
Fix clazy return void warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent 7761360 commit bf413bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/analysis/vector/qgsgeometrysnapper.h
Expand Up @@ -96,7 +96,7 @@ class ANALYSIS_EXPORT QgsGeometrySnapper : public QObject
, snapTolerance( snapTolerance )
, mode( mode )
{}
void operator()( QgsFeature &feature ) { return instance->processFeature( feature, snapTolerance, mode ); }
void operator()( QgsFeature &feature ) { instance->processFeature( feature, snapTolerance, mode ); }
};

enum PointFlag { SnappedToRefNode, SnappedToRefSegment, Unsnapped };
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgssettings.cpp
Expand Up @@ -189,7 +189,7 @@ QString QgsSettings::fileName() const

void QgsSettings::sync()
{
return mUserSettings->sync();
mUserSettings->sync();
}

void QgsSettings::remove( const QString &key, const QgsSettings::Section section )
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgspointdistancerenderer.cpp
Expand Up @@ -193,7 +193,7 @@ void QgsPointDistanceRenderer::checkLegendSymbolItem( const QString &key, bool s
if ( !mRenderer )
return;

return mRenderer->checkLegendSymbolItem( key, state );
mRenderer->checkLegendSymbolItem( key, state );
}

QString QgsPointDistanceRenderer::filter( const QgsFields &fields )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrasterlayersaveasdialog.h
Expand Up @@ -87,7 +87,7 @@ class GUI_EXPORT QgsRasterLayerSaveAsDialog: public QDialog, private Ui::QgsRast
void hideOutput();

public slots:
void accept() override { if ( validate() ) return QDialog::accept(); }
void accept() override { if ( validate() ) QDialog::accept(); }

private slots:
void mRawModeRadioButton_toggled( bool );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsscalewidget.cpp
Expand Up @@ -61,5 +61,5 @@ void QgsScaleWidget::setScaleFromCanvas()

void QgsScaleWidget::setScale( double scale )
{
return mScaleComboBox->setScale( scale );
mScaleComboBox->setScale( scale );
}

0 comments on commit bf413bc

Please sign in to comment.