Skip to content
Permalink
Browse files
[afs] Work around compiler complaining about std::min type mismatch o…
…n qt6
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent 091b93b commit 744ef3f59f8c1acf4eb4e833c1d8a66b34cd4a7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/arcgisrest/qgsafsshareddata.cpp
@@ -38,7 +38,7 @@ bool QgsAfsSharedData::getFeature( QgsFeatureId id, QgsFeature &f, const QgsRect

// Fetch 100 features at the time
int startId = ( id / 100 ) * 100;
int stopId = std::min( startId + 100, mObjectIds.length() );
int stopId = std::min< size_t >( startId + 100, mObjectIds.length() );
QList<quint32> objectIds;
objectIds.reserve( stopId );
for ( int i = startId; i < stopId; ++i )

0 comments on commit 744ef3f

Please sign in to comment.