File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1350,7 +1350,7 @@ bool QgsOgrProvider::addAttributes( const QList<QgsField> &attributes )
1350
1350
1351
1351
QMap< QString, QgsField > mapFieldNameToOriginalField;
1352
1352
1353
- for ( QList<QgsField>::const_iterator iter = attributes.begin (); iter != attributes.end (); ++iter )
1353
+ for ( QList<QgsField>::const_iterator iter = attributes.constBegin (); iter != attributes.constEnd (); ++iter )
1354
1354
{
1355
1355
mapFieldNameToOriginalField[ iter->name ()] = *iter;
1356
1356
@@ -1418,8 +1418,8 @@ bool QgsOgrProvider::addAttributes( const QList<QgsField> &attributes )
1418
1418
// For example in case of Integer64->Real mapping so that QVariant::LongLong is
1419
1419
// still returned to the caller
1420
1420
// Or if a field width was specified but not strictly enforced by the driver (#15614)
1421
- for ( QMap< QString, QgsField >::const_iterator it = mapFieldNameToOriginalField.begin ();
1422
- it != mapFieldNameToOriginalField.end (); ++it )
1421
+ for ( QMap< QString, QgsField >::const_iterator it = mapFieldNameToOriginalField.constBegin ();
1422
+ it != mapFieldNameToOriginalField.constEnd (); ++it )
1423
1423
{
1424
1424
int idx = mAttributeFields .lookupField ( it.key () );
1425
1425
if ( idx >= 0 )
You can’t perform that action at this time.
0 commit comments