[Geometry Checker] Fix availableResolutionMethods()

This commit is contained in:
Andrea Giudiceandrea 2023-04-03 15:47:43 +02:00 committed by Nyall Dawson
parent 5f8c4ae5f5
commit 2fb4f894c7

View File

@ -65,10 +65,10 @@ QList<QgsGeometryCheckResolutionMethod> QgsGeometryCheck::availableResolutionMet
const QStringList methods = resolutionMethods(); const QStringList methods = resolutionMethods();
Q_NOWARN_DEPRECATED_POP Q_NOWARN_DEPRECATED_POP
const int i = 0; int i = 0;
for ( const QString &method : methods ) for ( const QString &method : methods )
{ {
fixes.append( QgsGeometryCheckResolutionMethod( i, method, QString(), false ) ); fixes.append( QgsGeometryCheckResolutionMethod( i++, method, QString(), false ) );
} }
return fixes; return fixes;