Skip to content
Permalink
Browse files

Add unique_ptr in nodeNotFromOgcFilter

  • Loading branch information
pblottiere committed Sep 13, 2018
1 parent b57b9d7 commit 5ccb16734c123d91622fa5db6132aa4ed20d7f2d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsogcutils.cpp
@@ -3398,14 +3398,14 @@ QgsExpressionNodeUnaryOperator *QgsOgcUtilsExpressionFromFilter::nodeNotFromOgcF
return nullptr;

QDomElement operandElem = element.firstChildElement();
QgsExpressionNode *operand = nodeFromOgcFilter( operandElem );
std::unique_ptr<QgsExpressionNode> operand( nodeFromOgcFilter( operandElem ) );
if ( !operand )
{
mErrorMessage = QObject::tr( "invalid operand for '%1' unary operator" ).arg( element.tagName() );
return nullptr;
}

return new QgsExpressionNodeUnaryOperator( QgsExpressionNodeUnaryOperator::uoNot, operand );
return new QgsExpressionNodeUnaryOperator( QgsExpressionNodeUnaryOperator::uoNot, operand.release() );
}

QgsExpressionNodeBinaryOperator *QgsOgcUtilsExpressionFromFilter::nodePropertyIsNullFromOgcFilter( const QDomElement &element )

0 comments on commit 5ccb167

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