Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #54612 from rouault/qgspoint_unused
qgsgeos.cpp: fix a -Wunused-variable warning
  • Loading branch information
rouault committed Sep 18, 2023
2 parents 6c0f98e + 8714be4 commit 8f07c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeos.cpp
Expand Up @@ -1032,7 +1032,7 @@ geos::unique_ptr QgsGeos::linePointDifference( GEOSGeometry *GEOSsplitPoint ) co
else if ( qgsgeometry_cast<QgsPoint *>( splitGeom.get() ) )
{
splitPoints = std::make_unique< QgsMultiPoint >();
if ( QgsPoint *point = qgsgeometry_cast<QgsPoint *>( splitGeom.get() ) )
if ( qgsgeometry_cast<QgsPoint *>( splitGeom.get() ) )
{
splitPoints->addGeometry( qgsgeometry_cast<QgsPoint *>( splitGeom.release() ) );
}
Expand Down

0 comments on commit 8f07c77

Please sign in to comment.