Optimise args

This commit is contained in:
Nyall Dawson 2018-04-06 17:00:14 +10:00
parent 0f1c8df941
commit 62ba263f38

View File

@ -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 );