mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
use forwarding reference to fix reference copy warning
This commit is contained in:
parent
fa1b704a5c
commit
74017adbee
@ -650,7 +650,7 @@ void QgsExpressionTreeView::loadExpressionsFromJson( const QJsonDocument &expres
|
|||||||
settings.beginGroup( QStringLiteral( "user" ), QgsSettings::Section::Expressions );
|
settings.beginGroup( QStringLiteral( "user" ), QgsSettings::Section::Expressions );
|
||||||
mUserExpressionLabels = settings.childGroups();
|
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
|
// validate the type of the array element, can be anything
|
||||||
if ( ! expressionValue.isObject() )
|
if ( ! expressionValue.isObject() )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user