@@ -428,11 +428,11 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
428428 if ( origin.compare ( " labeling" , Qt::CaseInsensitive ) == 0 )
429429 {
430430 const QgsPropertiesDefinition props = QgsPalLayerSettings::propertyDefinitions ();
431- for ( const QgsPropertyDefinition &p : props.values () )
431+ for ( auto it = props. constBegin (); it != props.constEnd (); ++it )
432432 {
433- if ( p .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
433+ if ( it. value () .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
434434 {
435- def = p ;
435+ def = it. value () ;
436436 if ( parts.size () == 3 )
437437 def.setComment ( parts[2 ] );
438438 break ;
@@ -442,11 +442,11 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
442442 else if ( origin.compare ( " symbol" , Qt::CaseInsensitive ) == 0 )
443443 {
444444 const QgsPropertiesDefinition props = QgsSymbolLayer::propertyDefinitions ();
445- for ( const QgsPropertyDefinition &p : props.values () )
445+ for ( auto it = props. constBegin (); it != props.constEnd (); ++it )
446446 {
447- if ( p .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
447+ if ( it. value () .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
448448 {
449- def = p ;
449+ def = it. value () ;
450450 if ( parts.size () == 3 )
451451 def.setComment ( parts[2 ] );
452452 break ;
@@ -456,11 +456,11 @@ QgsPropertyDefinition QgsAuxiliaryLayer::propertyDefinitionFromField( const QgsF
456456 else if ( origin.compare ( " diagram" , Qt::CaseInsensitive ) == 0 )
457457 {
458458 const QgsPropertiesDefinition props = QgsDiagramLayerSettings::propertyDefinitions ();
459- for ( const QgsPropertyDefinition &p : props.values () )
459+ for ( auto it = props. constBegin (); it != props.constEnd (); ++it )
460460 {
461- if ( p .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
461+ if ( it. value () .name ().compare ( propertyName, Qt::CaseInsensitive ) == 0 )
462462 {
463- def = p ;
463+ def = it. value () ;
464464 if ( parts.size () == 3 )
465465 def.setComment ( parts[2 ] );
466466 break ;
0 commit comments