Skip to content

Commit

Permalink
Fix clang-tidy redundant return/continue warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 357f998 commit f2875a9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5550,7 +5550,6 @@ void QgisApp::openProject( const QString &fileName )
// error handling and reporting is in addProject() function
addProject( fileName );
}
return;
}

/**
Expand Down Expand Up @@ -11823,7 +11822,6 @@ void QgisApp::oldProjectVersionWarning( const QString &oldVersion )

messageBar()->pushMessage( title, smalltext );
}
return;
}

void QgisApp::updateUndoActions()
Expand Down
1 change: 0 additions & 1 deletion src/app/qgscustomprojectiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ void QgsCustomProjectionDialog::on_leNameList_currentItemChanged( QTreeWidgetIte
teParameters->setPlainText( QLatin1String( "" ) );
return;
}
return;
}

void QgsCustomProjectionDialog::on_pbnCopyCRS_clicked()
Expand Down
2 changes: 0 additions & 2 deletions src/core/geometry/qgsgeos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ void QgsGeos::subdivideRecursive( const GEOSGeometry *currentPart, int maxNodes,
{
subdivideRecursive( clipPart2.get(), maxNodes, depth, parts, halfClipRect2 );
}

return;
}

QgsAbstractGeometry *QgsGeos::subdivide( int maxNodes, QString *errorMsg ) const
Expand Down
1 change: 0 additions & 1 deletion src/core/geometry/qgstriangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ QgsAbstractGeometry *QgsTriangle::toCurveType() const
void QgsTriangle::addInteriorRing( QgsCurve *ring )
{
Q_UNUSED( ring );
return;
}

bool QgsTriangle::deleteVertex( QgsVertexId position )
Expand Down
2 changes: 0 additions & 2 deletions src/core/processing/models/qgsprocessingmodelalgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,6 @@ QMap<QString, QgsProcessingModelAlgorithm::VariableDefinition> QgsProcessingMode
variables.insert( safeName( QStringLiteral( "%1_miny" ).arg( name ) ), VariableDefinition( layer ? layer->extent().yMinimum() : QVariant(), source, QObject::tr( "Minimum Y of %1" ).arg( description ) ) );
variables.insert( safeName( QStringLiteral( "%1_maxx" ).arg( name ) ), VariableDefinition( layer ? layer->extent().xMaximum() : QVariant(), source, QObject::tr( "Maximum X of %1" ).arg( description ) ) );
variables.insert( safeName( QStringLiteral( "%1_maxy" ).arg( name ) ), VariableDefinition( layer ? layer->extent().yMaximum() : QVariant(), source, QObject::tr( "Maximum Y of %1" ).arg( description ) ) );

continue;
}

sources = availableSourcesForChild( childId, QStringList()
Expand Down

0 comments on commit f2875a9

Please sign in to comment.