@@ -277,7 +277,7 @@ bool QgsAuxiliaryLayer::isHiddenProperty( int index ) const
277
277
278
278
if ( def.origin ().compare ( " labeling" ) == 0 )
279
279
{
280
- Q_FOREACH ( const QgsPalLayerSettings::Property &p, palHiddenProperties )
280
+ for ( const QgsPalLayerSettings::Property &p : palHiddenProperties )
281
281
{
282
282
const QString propName = QgsPalLayerSettings::propertyDefinitions ()[ p ].name ();
283
283
if ( propName.compare ( def.name () ) == 0 )
@@ -404,7 +404,7 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
404
404
if ( origin.compare ( " labeling" , Qt::CaseInsensitive ) == 0 )
405
405
{
406
406
const QgsPropertiesDefinition props = QgsPalLayerSettings::propertyDefinitions ();
407
- Q_FOREACH ( const QgsPropertyDefinition p, props.values () )
407
+ for ( const QgsPropertyDefinition &p : props.values () )
408
408
{
409
409
if ( p.name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
410
410
{
@@ -418,7 +418,7 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
418
418
else if ( origin.compare ( " symbol" , Qt::CaseInsensitive ) == 0 )
419
419
{
420
420
const QgsPropertiesDefinition props = QgsSymbolLayer::propertyDefinitions ();
421
- Q_FOREACH ( const QgsPropertyDefinition p, props.values () )
421
+ for ( const QgsPropertyDefinition &p : props.values () )
422
422
{
423
423
if ( p.name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
424
424
{
@@ -432,7 +432,7 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
432
432
else if ( origin.compare ( " diagram" , Qt::CaseInsensitive ) == 0 )
433
433
{
434
434
const QgsPropertiesDefinition props = QgsDiagramLayerSettings::propertyDefinitions ();
435
- Q_FOREACH ( const QgsPropertyDefinition p, props.values () )
435
+ for ( const QgsPropertyDefinition &p : props.values () )
436
436
{
437
437
if ( p.name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
438
438
{
0 commit comments