Skip to content

Commit 5d5229e

Browse files
committed
Fixup ae242f5
In QGIS 2.8 QgsField is not yet implicitly shared...
1 parent ae242f5 commit 5d5229e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/qgsfield.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ void QgsFields::remove( int fieldIdx )
203203
if ( !exists( fieldIdx ) )
204204
return;
205205

206-
d->fields.remove( fieldIdx );
207-
d->nameToIndex.clear();
206+
mFields.remove( fieldIdx );
207+
mNameToIndex.clear();
208208
for ( int idx = 0; idx < count(); ++idx )
209209
{
210-
d->nameToIndex.insert( d->fields[idx].field.name(), idx );
210+
mNameToIndex.insert( mFields[idx].field.name(), idx );
211211
}
212212
}
213213

0 commit comments

Comments
 (0)