Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 29, 2023
1 parent 46c2d8b commit d5b62e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/analysis/processing/qgsalgorithmpointstopaths.cpp
Expand Up @@ -249,17 +249,15 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap &para
const QgsMultiPoint mp( *qgsgeometry_cast< const QgsMultiPoint * >( geom ) );
for ( auto pit = mp.const_parts_begin(); pit != mp.const_parts_end(); ++pit )
{
const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( *pit );
if ( point )
if ( const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( *pit ) )
{
allPoints[ groupValue ] << qMakePair( orderValue, *point );
}
}
}
else
{
const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( geom );
if ( point )
if ( const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( geom ) )
{
allPoints[ groupValue ] << qMakePair( orderValue, *point );
}
Expand Down

0 comments on commit d5b62e2

Please sign in to comment.