qgsgeometrygapcheck.cpp: fix false-positive warning about potentially unused variable

This commit is contained in:
Even Rouault 2020-06-13 17:29:44 +02:00 committed by Nyall Dawson
parent 8de4821f8d
commit 6e81d1f5bf

View File

@ -339,7 +339,7 @@ bool QgsGeometryGapCheck::mergeWithNeighbor( const QMap<QString, QgsFeaturePool
const QgsAbstractGeometry *testGeom = featureGeom.constGet();
for ( int iPart = 0, nParts = testGeom->partCount(); iPart < nParts; ++iPart )
{
double val;
double val = 0;
switch ( condition )
{
case LongestSharedEdge: