Skip to content
Permalink
Browse files

use forwarding reference to fix reference copy warning

  • Loading branch information
3nids authored and nyalldawson committed Nov 1, 2020
1 parent fa1b704 commit 74017adbee14a330113cf3843f52d19b1251e56e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsexpressiontreeview.cpp
@@ -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() )

0 comments on commit 74017ad

Please sign in to comment.
You can’t perform that action at this time.