mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Optimise args
This commit is contained in:
parent
0f1c8df941
commit
62ba263f38
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user