Skip to content
Permalink
Browse files

Minor performance tweak

  • Loading branch information
nyalldawson committed Aug 23, 2018
1 parent c7eafc6 commit 34bb08c156188cdb627384332a66167e47c4b6d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -4967,7 +4967,7 @@ void QgsWithVariableExpressionFunction::popTemporaryVariable( const QgsExpressio
void QgsWithVariableExpressionFunction::appendTemporaryVariable( const QgsExpressionContext *context, const QString &name, const QVariant &value ) const
{
QgsExpressionContextScope *scope = new QgsExpressionContextScope();
scope->setVariable( name, value );
scope->addVariable( QgsExpressionContextScope::StaticVariable( name, value, true ) );

QgsExpressionContext *updatedContext = const_cast<QgsExpressionContext *>( context );
updatedContext->appendScope( scope );

0 comments on commit 34bb08c

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