Skip to content
Permalink
Browse files

Add unique_ptr in nodePropertyIsNullFromOgcFilter

  • Loading branch information
pblottiere committed Sep 13, 2018
1 parent 5ccb167 commit 694af1cce0cda5dfc9e9b2ff79b4f9f17186a4d2
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsogcutils.cpp
@@ -3417,12 +3417,12 @@ QgsExpressionNodeBinaryOperator *QgsOgcUtilsExpressionFromFilter::nodePropertyIs
}

QDomElement operandElem = element.firstChildElement();
QgsExpressionNode *opLeft = nodeFromOgcFilter( operandElem );
std::unique_ptr<QgsExpressionNode> opLeft( nodeFromOgcFilter( operandElem ) );
if ( !opLeft )
return nullptr;

QgsExpressionNode *opRight = new QgsExpressionNodeLiteral( QVariant() );
return new QgsExpressionNodeBinaryOperator( QgsExpressionNodeBinaryOperator::boIs, opLeft, opRight );
std::unique_ptr<QgsExpressionNode> opRight( new QgsExpressionNodeLiteral( QVariant() ) );
return new QgsExpressionNodeBinaryOperator( QgsExpressionNodeBinaryOperator::boIs, opLeft.release(), opRight.release() );
}

QgsExpressionNodeFunction *QgsOgcUtilsExpressionFromFilter::nodeFunctionFromOgcFilter( const QDomElement &element )

0 comments on commit 694af1c

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