Skip to content

Commit

Permalink
std::as_const -> qgis::as_const
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Dec 13, 2021
1 parent 4ce9da9 commit bf0a3a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/fieldformatter/qgsvaluerelationfieldformatter.cpp
Expand Up @@ -332,7 +332,7 @@ QSet<QString> QgsValueRelationFieldFormatter::expressionParentFormAttributes( co
if ( formFunctions.contains( fd->name( ) ) )
{
const QList<QgsExpressionNode *> cExpressionNodes { f->args( )->list() };
for ( const auto &param : std::as_const( cExpressionNodes ) )
for ( const auto &param : qgis::as_const( cExpressionNodes ) )
{
attributes.insert( param->eval( &exp, &context ).toString() );
}
Expand All @@ -357,7 +357,7 @@ QSet<QString> QgsValueRelationFieldFormatter::expressionFormAttributes( const QS
if ( formFunctions.contains( fd->name( ) ) )
{
const QList<QgsExpressionNode *> cExpressionNodes { f->args( )->list() };
for ( const auto &param : std::as_const( cExpressionNodes ) )
for ( const auto &param : qgis::as_const( cExpressionNodes ) )
{
attributes.insert( param->eval( &exp, &context ).toString() );
}
Expand Down

0 comments on commit bf0a3a9

Please sign in to comment.