Skip to content
Permalink
Browse files

Optimise args

  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent 0f1c8df commit 62ba263f3882025560cf910f86bdc216d510faba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -3482,7 +3482,7 @@ static QVariant fcnGetFeature( const QVariantList &values, const QgsExpressionCo

const QVariant &attVal = values.at( 2 );

const QString cacheValueKey = QStringLiteral( "getfeature:%1:%2:%3" ).arg( vl->id() ).arg( attributeId ).arg( attVal.toString() );
const QString cacheValueKey = QStringLiteral( "getfeature:%1:%2:%3" ).arg( vl->id(), QString::number( attributeId ), attVal.toString() );
if ( context && context->hasCachedValue( cacheValueKey ) )
{
return context->cachedValue( cacheValueKey );

0 comments on commit 62ba263

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