Skip to content

Commit

Permalink
Update src/core/geometry/qgsgeometry.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 24, 2021
1 parent 48c77a3 commit b40c53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Expand Up @@ -197,7 +197,7 @@ QgsGeometry QgsGeometry::fromPolygonXY( const QgsPolygonXY &polygon )
std::unique_ptr< QgsPolygon > geom = QgsGeometryFactory::fromPolygonXY( polygon );
if ( geom )
{
return QgsGeometry( geom.release() );
return QgsGeometry( std::move( geom ) );
}
return QgsGeometry();
}
Expand Down

0 comments on commit b40c53c

Please sign in to comment.