Skip to content

Commit 5fd9501

Browse files
committedSep 13, 2018
More unique_ptr
1 parent bae996c commit 5fd9501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsogcutils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3287,11 +3287,11 @@ QgsExpressionNodeFunction *QgsOgcUtilsExpressionFromFilter::nodeSpatialOperatorF
32873287
return nullptr;
32883288
}
32893289

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

3294-
return new QgsExpressionNodeFunction( opIdx, opArgs );
3294+
return new QgsExpressionNodeFunction( opIdx, opArgs.release() );
32953295
}
32963296

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

0 commit comments

Comments
 (0)
Please sign in to comment.