Skip to content
Permalink
Browse files

Optimise args

(cherry-picked from 62ba263)
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent cc87fb1 commit cb067f856d5e8ee50982ce70a1e7132549dcc955
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -3438,7 +3438,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 cb067f8

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