Navigation Menu

Skip to content

Commit

Permalink
Optimise args
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent 0f1c8df commit 62ba263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 62ba263

Please sign in to comment.