use forwarding reference to fix reference copy warning

This commit is contained in:
Denis Rouzaud 2020-10-30 10:53:51 +01:00 committed by Nyall Dawson
parent fa1b704a5c
commit 74017adbee

View File

@ -650,7 +650,7 @@ void QgsExpressionTreeView::loadExpressionsFromJson( const QJsonDocument &expres
settings.beginGroup( QStringLiteral( "user" ), QgsSettings::Section::Expressions );
mUserExpressionLabels = settings.childGroups();
for ( const QJsonValue &expressionValue : expressionsObject["expressions"].toArray() )
for ( const QJsonValue &&expressionValue : expressionsObject["expressions"].toArray() )
{
// validate the type of the array element, can be anything
if ( ! expressionValue.isObject() )