Skip to content

Commit

Permalink
more usage of cached values
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 30, 2017
1 parent 00207c8 commit 9e14344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4950,13 +4950,13 @@ QVariant QgsExpression::NodeBinaryOperator::evalNode( QgsExpression *parent, con
QgsExpression::NodeLiteral nL( lL.at( i ) );
QgsExpression::NodeLiteral nR( lR.at( i ) );
QgsExpression::NodeBinaryOperator eqNode( boEQ, nL.clone(), nR.clone() );
QVariant eq = eqNode.evalNode( parent, context );
QVariant eq = eqNode.eval( parent, context );
ENSURE_NO_EVAL_ERROR;
if ( eq == TVL_False )
{
// return the two items comparison
QgsExpression::NodeBinaryOperator node( mOp, nL.clone(), nR.clone() );
QVariant v = node.evalNode( parent, context );
QVariant v = node.eval( parent, context );
ENSURE_NO_EVAL_ERROR;
return v;
}
Expand Down

0 comments on commit 9e14344

Please sign in to comment.