Skip to content
Permalink
Browse files
Add const to geom variable
Co-authored-by: Julien Cabieces <julien.cabieces@oslandia.com>
  • Loading branch information
2 people authored and nyalldawson committed Aug 23, 2021
1 parent 7cdad5b commit 68ab811929563cc1d66223a690a17767b5afb7f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -3605,7 +3605,7 @@ static QVariant fcnSinuosity( const QVariantList &values, const QgsExpressionCon

static QVariant fcnStraightDistance2d( const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent, const QgsExpressionNodeFunction * )
{
QgsGeometry geom = QgsExpressionUtils::getGeometry( values.at( 0 ), parent );
const QgsGeometry geom = QgsExpressionUtils::getGeometry( values.at( 0 ), parent );
const QgsCurve *curve = qgsgeometry_cast< const QgsCurve * >( geom.constGet() );
if ( !curve )
{

0 comments on commit 68ab811

Please sign in to comment.