Skip to content
Permalink
Browse files

Fix clazy return void warnings

  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent 7761360 commit bf413bc6cd654bfdc4ce37c5eb5adddccee78f30
@@ -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 };
@@ -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 )
@@ -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 )
@@ -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 );
@@ -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.
You can’t perform that action at this time.