Skip to content

Commit e541a38

Browse files
committed
fix build
1 parent 09cffcd commit e541a38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/providers/arcgisrest/qgsafsprovider.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
218218
QgsFeature feature;
219219
int featureId = startId + i;
220220

221-
222221
// Set attributes
223222
if ( !fetchAttribIdx.isEmpty() )
224223
{
@@ -228,7 +227,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
228227
foreach ( int idx, fetchAttribIdx )
229228
{
230229
attributes[idx] = attributesData[mFields.at( idx ).name()];
231-
if ( mFields.at( idx ).name() == QStringLiteral( "OBJECTID" ) )
230+
if ( mFields.at( idx ).name() == "OBJECTID" )
232231
{
233232
featureId = startId + objectIds.indexOf( attributesData[mFields.at( idx ).name()].toInt() );
234233
}
@@ -253,7 +252,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
253252
}
254253

255254
// If added to cached, return feature
256-
QMap<QgsFeatureId, QgsFeature>::const_iterator it = mCache.find( id );
255+
it = mCache.find( id );
257256
if ( it != mCache.end() )
258257
{
259258
f = it.value();

0 commit comments

Comments
 (0)