Skip to content
Permalink
Browse files

More unique_ptr

  • Loading branch information
pblottiere committed Sep 13, 2018
1 parent bae996c commit 5fd9501ad910ccfcc184a83a75149788a606031c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsogcutils.cpp
@@ -3287,11 +3287,11 @@ QgsExpressionNodeFunction *QgsOgcUtilsExpressionFromFilter::nodeSpatialOperatorF
return nullptr;
}

QgsExpressionNode::NodeList *opArgs = new QgsExpressionNode::NodeList();
std::unique_ptr<QgsExpressionNode::NodeList> opArgs( new QgsExpressionNode::NodeList() );
opArgs->append( new QgsExpressionNodeFunction( QgsExpression::functionIndex( QStringLiteral( "$geometry" ) ), new QgsExpressionNode::NodeList() ) );
opArgs->append( new QgsExpressionNodeFunction( QgsExpression::functionIndex( QStringLiteral( "geomFromGML" ) ), gml2Args.release() ) );

return new QgsExpressionNodeFunction( opIdx, opArgs );
return new QgsExpressionNodeFunction( opIdx, opArgs.release() );
}

QgsExpressionNodeColumnRef *QgsOgcUtilsExpressionFromFilter::nodeColumnRefFromOgcFilter( const QDomElement &element )

0 comments on commit 5fd9501

Please sign in to comment.
You can’t perform that action at this time.