Skip to content

Commit 3817df6

Browse files
3nidsm-kuhn
authored andcommitted
Revert "QgsGeometryCheckError class requires context in constructor (not inherited classes yet)"
This reverts commit 73c89ae.
1 parent 7df2c63 commit 3817df6

22 files changed

+42
-52
lines changed

python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckerror.sip.in

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ the Free Software Foundation; either version 2 of the License, or *
3333
enum ValueType { ValueLength, ValueArea, ValueOther };
3434

3535
QgsGeometryCheckError( const QgsGeometryCheck *check,
36-
const QgsGeometryCheckContext *context,
3736
const QgsGeometryCheckerUtils::LayerFeature &layerFeature,
3837
const QgsPointXY &errorLocation,
3938
QgsVertexId vidx = QgsVertexId(),
@@ -44,7 +43,6 @@ the Free Software Foundation; either version 2 of the License, or *
4443

4544

4645
const QgsGeometryCheck *check() const;
47-
const QgsGeometryCheckContext *context() const;
4846
const QString &layerId() const;
4947
QgsFeatureId featureId() const;
5048
QgsGeometry geometry() const;

python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckerutils.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ the Free Software Foundation; either version 2 of the License, or *
3535
%End
3636
public:
3737

38-
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );
38+
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, QgsGeometryCheckContext *context, bool useMapCrs );
3939
%Docstring
4040
Create a new layer/feature combination.
4141
The layer is defined by ``pool``, ``feature`` needs to be from this layer.

src/analysis/vector/geometry_checker/qgsgeometryanglecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void QgsGeometryAngleCheck::collectErrors( const QMap<QString, QgsFeaturePool *>
6363
double angle = std::acos( v21 * v23 ) / M_PI * 180.0;
6464
if ( angle < mMinAngle )
6565
{
66-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, p2, QgsVertexId( iPart, iRing, iVert ), angle ) );
66+
errors.append( new QgsGeometryCheckError( this, layerFeature, p2, QgsVertexId( iPart, iRing, iVert ), angle ) );
6767
}
6868
}
6969
}

src/analysis/vector/geometry_checker/qgsgeometryareacheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "qgsfeaturepool.h"
2121
#include "qgsgeometrycheckerror.h"
2222

23-
void QgsGeometryAreaCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
23+
void QgsGeometryAreaCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2424
{
2525
Q_UNUSED( messages )
2626
QMap<QString, QgsFeatureIds> featureIds = ids.isEmpty() ? allLayerFeatureIds( featurePools ) : ids.toMap();
@@ -35,7 +35,7 @@ void QgsGeometryAreaCheck::collectErrors( const QMap<QString, QgsFeaturePool *>
3535
const QgsAbstractGeometry *part = QgsGeometryCheckerUtils::getGeomPart( geom, iPart );
3636
if ( checkThreshold( layerToMapUnits, part, value ) )
3737
{
38-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, part->centroid(), QgsVertexId( iPart ), value * layerToMapUnits * layerToMapUnits, QgsGeometryCheckError::ValueArea ) );
38+
errors.append( new QgsGeometryCheckError( this, layerFeature, part->centroid(), QgsVertexId( iPart ), value * layerToMapUnits * layerToMapUnits, QgsGeometryCheckError::ValueArea ) );
3939
}
4040
}
4141
}

src/analysis/vector/geometry_checker/qgsgeometrychecker.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ bool QgsGeometryChecker::fixError( QgsGeometryCheckError *error, int method, boo
200200
{
201201
if ( !recheckAreaFeatures.isEmpty() )
202202
{
203-
check->collectErrors( mFeaturePools, mContext, recheckErrors, mMessages, nullptr, recheckAreaFeatures );
203+
check->collectErrors( mFeaturePools, recheckErrors, mMessages, nullptr, recheckAreaFeatures );
204204
}
205205
}
206206
else
207207
{
208208
if ( !recheckFeatures.isEmpty() )
209209
{
210-
check->collectErrors( mFeaturePools, mContext, recheckErrors, mMessages, nullptr, recheckFeatures );
210+
check->collectErrors( mFeaturePools, recheckErrors, mMessages, nullptr, recheckFeatures );
211211
}
212212
}
213213
}
@@ -285,7 +285,7 @@ void QgsGeometryChecker::runCheck( const QMap<QString, QgsFeaturePool *> &featur
285285
// Run checks
286286
QList<QgsGeometryCheckError *> errors;
287287
QStringList messages;
288-
check->collectErrors( featurePools, mContext, errors, messages, &mFeedback );
288+
check->collectErrors( featurePools, errors, messages, &mFeedback );
289289
mErrorListMutex.lock();
290290
mCheckErrors.append( errors );
291291
mMessages.append( messages );

src/analysis/vector/geometry_checker/qgsgeometrycheckerror.h

-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class ANALYSIS_EXPORT QgsGeometryCheckError
3333
enum ValueType { ValueLength, ValueArea, ValueOther };
3434

3535
QgsGeometryCheckError( const QgsGeometryCheck *check,
36-
const QgsGeometryCheckContext *context,
3736
const QgsGeometryCheckerUtils::LayerFeature &layerFeature,
3837
const QgsPointXY &errorLocation,
3938
QgsVertexId vidx = QgsVertexId(),
@@ -45,7 +44,6 @@ class ANALYSIS_EXPORT QgsGeometryCheckError
4544
const QgsGeometryCheckError &operator=( const QgsGeometryCheckError & ) = delete;
4645

4746
const QgsGeometryCheck *check() const { return mCheck; }
48-
const QgsGeometryCheckContext *context() const {return mContext;}
4947
const QString &layerId() const { return mLayerId; }
5048
QgsFeatureId featureId() const { return mFeatureId; }
5149
// In map units
@@ -101,7 +99,6 @@ class ANALYSIS_EXPORT QgsGeometryCheckError
10199
ValueType valueType = ValueOther );
102100

103101
const QgsGeometryCheck *mCheck = nullptr;
104-
const QgsGeometryCheckContext *mContext = nullptr;
105102
QString mLayerId;
106103
QgsFeatureId mFeatureId;
107104
QgsGeometry mGeometry;

src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
QgsGeometryCheckerUtils::LayerFeature::LayerFeature( const QgsFeaturePool *pool,
3333
const QgsFeature &feature,
34-
const QgsGeometryCheckContext *context,
34+
QgsGeometryCheckContext *context,
3535
bool useMapCrs )
3636
: mFeaturePool( pool )
3737
, mFeature( feature )
@@ -211,7 +211,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
211211
const QMap<QString, QgsFeatureIds> &featureIds,
212212
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
213213
QgsFeedback *feedback,
214-
const QgsGeometryCheckContext *context,
214+
QgsGeometryCheckContext *context,
215215
bool useMapCrs )
216216
: mFeaturePools( featurePools )
217217
, mFeatureIds( featureIds )
@@ -225,7 +225,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
225225
QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
226226
const QList<QString> &layerIds, const QgsRectangle &extent,
227227
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
228-
const QgsGeometryCheckContext *context )
228+
QgsGeometryCheckContext *context )
229229
: mFeaturePools( featurePools )
230230
, mLayerIds( layerIds )
231231
, mExtent( extent )

src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
4141
* If \a useMapCrs is True, geometries will be reprojected to the mapCrs defined
4242
* in \a context.
4343
*/
44-
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );
44+
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, QgsGeometryCheckContext *context, bool useMapCrs );
4545

4646
/**
4747
* Returns the feature.
@@ -89,13 +89,13 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
8989
const QMap<QString, QgsFeatureIds> &featureIds,
9090
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
9191
QgsFeedback *feedback,
92-
const QgsGeometryCheckContext *context,
92+
QgsGeometryCheckContext *context,
9393
bool useMapCrs = false );
9494

9595
LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
9696
const QList<QString> &layerIds, const QgsRectangle &extent,
9797
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
98-
const QgsGeometryCheckContext *context );
98+
QgsGeometryCheckContext *context );
9999

100100
class iterator
101101
{
@@ -133,7 +133,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
133133
QgsRectangle mExtent;
134134
QList<QgsWkbTypes::GeometryType> mGeometryTypes;
135135
QgsFeedback *mFeedback = nullptr;
136-
const QgsGeometryCheckContext *mContext = nullptr;
136+
QgsGeometryCheckContext *mContext = nullptr;
137137
bool mUseMapCrs = true;
138138
};
139139

src/analysis/vector/geometry_checker/qgsgeometrycontainedcheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "qgsvectorlayer.h"
2121

2222

23-
void QgsGeometryContainedCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
23+
void QgsGeometryContainedCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2424
{
2525
QMap<QString, QgsFeatureIds> featureIds = ids.isEmpty() ? allLayerFeatureIds( featurePools ) : ids.toMap();
2626
QgsGeometryCheckerUtils::LayerFeatures layerFeaturesA( featurePools, featureIds, compatibleGeometryTypes(), feedback, mContext );

src/analysis/vector/geometry_checker/qgsgeometrycontainedcheck.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ANALYSIS_EXPORT QgsGeometryContainedCheckError : public QgsGeometryCheckEr
3030
const QgsPointXY &errorLocation,
3131
const QgsGeometryCheckerUtils::LayerFeature &containingFeature
3232
)
33-
: QgsGeometryCheckError( check, check->context(), layerFeature, errorLocation, QgsVertexId(), containingFeature.id(), ValueOther )
33+
: QgsGeometryCheckError( check, layerFeature, errorLocation, QgsVertexId(), containingFeature.id(), ValueOther )
3434
, mContainingFeature( qMakePair( containingFeature.layer()->id(), containingFeature.feature().id() ) )
3535
{ }
3636
const QPair<QString, QgsFeatureId> &containingFeature() const { return mContainingFeature; }

src/analysis/vector/geometry_checker/qgsgeometrydanglecheck.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "qgsvectorlayer.h"
2020
#include "qgsgeometrycheckerror.h"
2121

22-
void QgsGeometryDangleCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
22+
void QgsGeometryDangleCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2323
{
2424
Q_UNUSED( messages )
2525
QMap<QString, QgsFeatureIds> featureIds = ids.isEmpty() ? allLayerFeatureIds( featurePools ) : ids.toMap();
@@ -84,11 +84,11 @@ void QgsGeometryDangleCheck::collectErrors( const QMap<QString, QgsFeaturePool *
8484
}
8585
if ( !p1touches )
8686
{
87-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, p1, QgsVertexId( iPart, 0, 0 ) ) );
87+
errors.append( new QgsGeometryCheckError( this, layerFeature, p1, QgsVertexId( iPart, 0, 0 ) ) );
8888
}
8989
if ( !p2touches )
9090
{
91-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, p2, QgsVertexId( iPart, 0, nVerts - 1 ) ) );
91+
errors.append( new QgsGeometryCheckError( this, layerFeature, p2, QgsVertexId( iPart, 0, nVerts - 1 ) ) );
9292
}
9393
}
9494
}

src/analysis/vector/geometry_checker/qgsgeometrydegeneratepolygoncheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "qgsgeometrycheckerror.h"
2020

2121

22-
void QgsGeometryDegeneratePolygonCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
22+
void QgsGeometryDegeneratePolygonCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2323
{
2424
Q_UNUSED( messages )
2525

@@ -35,7 +35,7 @@ void QgsGeometryDegeneratePolygonCheck::collectErrors( const QMap<QString, QgsFe
3535
if ( QgsGeometryCheckerUtils::polyLineSize( geom, iPart, iRing ) < 3 )
3636
{
3737
QgsVertexId vidx( iPart, iRing );
38-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, geom->vertexAt( vidx ), vidx ) );
38+
errors.append( new QgsGeometryCheckError( this, layerFeature, geom->vertexAt( vidx ), vidx ) );
3939
}
4040
}
4141
}

src/analysis/vector/geometry_checker/qgsgeometryduplicatecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ QString QgsGeometryDuplicateCheckError::duplicatesString( const QMap<QString, Qg
3838
}
3939

4040

41-
void QgsGeometryDuplicateCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
41+
void QgsGeometryDuplicateCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
4242
{
4343
QMap<QString, QgsFeatureIds> featureIds = ids.isEmpty() ? allLayerFeatureIds( featurePools ) : ids.toMap();
4444
QgsGeometryCheckerUtils::LayerFeatures layerFeaturesA( featurePools, featureIds, compatibleGeometryTypes(), feedback, mContext, true );

src/analysis/vector/geometry_checker/qgsgeometryduplicatenodescheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "qgsfeaturepool.h"
2020
#include "qgsgeometrycheckerror.h"
2121

22-
void QgsGeometryDuplicateNodesCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
22+
void QgsGeometryDuplicateNodesCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2323
{
2424
Q_UNUSED( messages )
2525

@@ -41,7 +41,7 @@ void QgsGeometryDuplicateNodesCheck::collectErrors( const QMap<QString, QgsFeatu
4141
QgsPoint pj = geom->vertexAt( QgsVertexId( iPart, iRing, jVert ) );
4242
if ( QgsGeometryUtils::sqrDistance2D( pi, pj ) < mContext->tolerance )
4343
{
44-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, pj, QgsVertexId( iPart, iRing, jVert ) ) );
44+
errors.append( new QgsGeometryCheckError( this, layerFeature, pj, QgsVertexId( iPart, iRing, jVert ) ) );
4545
}
4646
}
4747
}

src/analysis/vector/geometry_checker/qgsgeometryfollowboundariescheck.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ QgsGeometryFollowBoundariesCheck::~QgsGeometryFollowBoundariesCheck()
3636
delete mIndex;
3737
}
3838

39-
void QgsGeometryFollowBoundariesCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
39+
void QgsGeometryFollowBoundariesCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
4040
{
4141
Q_UNUSED( messages )
4242

@@ -70,7 +70,7 @@ void QgsGeometryFollowBoundariesCheck::collectErrors( const QMap<QString, QgsFea
7070
if ( refFeatureIds.isEmpty() )
7171
{
7272
// If no potential reference features are found, the geometry is definitely not following boundaries of reference layer features
73-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, QgsPointXY( geom->centroid() ) ) );
73+
errors.append( new QgsGeometryCheckError( this, layerFeature, QgsPointXY( geom->centroid() ) ) );
7474
}
7575
else
7676
{
@@ -83,7 +83,7 @@ void QgsGeometryFollowBoundariesCheck::collectErrors( const QMap<QString, QgsFea
8383
QgsGeometry reducedRefGeom( refgeomEngine->buffer( -mContext->tolerance, 0 ) );
8484
if ( !( geomEngine->contains( reducedRefGeom.constGet() ) || geomEngine->disjoint( reducedRefGeom.constGet() ) ) )
8585
{
86-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, QgsPointXY( geom->centroid() ) ) );
86+
errors.append( new QgsGeometryCheckError( this, layerFeature, QgsPointXY( geom->centroid() ) ) );
8787
break;
8888
}
8989
}

src/analysis/vector/geometry_checker/qgsgeometryholecheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "qgsfeaturepool.h"
2121
#include "qgsgeometrycheckerror.h"
2222

23-
void QgsGeometryHoleCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
23+
void QgsGeometryHoleCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2424
{
2525
Q_UNUSED( messages )
2626

@@ -41,7 +41,7 @@ void QgsGeometryHoleCheck::collectErrors( const QMap<QString, QgsFeaturePool *>
4141
{
4242

4343
QgsPoint pos = poly->interiorRing( iRing - 1 )->centroid();
44-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, pos, QgsVertexId( iPart, iRing ) ) );
44+
errors.append( new QgsGeometryCheckError( this, layerFeature, pos, QgsVertexId( iPart, iRing ) ) );
4545
}
4646
}
4747
}

src/analysis/vector/geometry_checker/qgsgeometrylineintersectioncheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "qgsvectorlayer.h"
2020
#include "qgsgeometrycheckerror.h"
2121

22-
void QgsGeometryLineIntersectionCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
22+
void QgsGeometryLineIntersectionCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2323
{
2424
Q_UNUSED( messages )
2525

@@ -67,7 +67,7 @@ void QgsGeometryLineIntersectionCheck::collectErrors( const QMap<QString, QgsFea
6767
const QList< QgsPoint > intersections = QgsGeometryCheckerUtils::lineIntersections( line, testLine, mContext->tolerance );
6868
for ( const QgsPoint &inter : intersections )
6969
{
70-
errors.append( new QgsGeometryCheckError( this, context, layerFeatureA, inter, QgsVertexId( iPart ), layerFeatureB.id() ) );
70+
errors.append( new QgsGeometryCheckError( this, layerFeatureA, inter, QgsVertexId( iPart ), layerFeatureB.id() ) );
7171
}
7272
}
7373
}

src/analysis/vector/geometry_checker/qgsgeometrylinelayerintersectioncheck.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "qgsfeaturepool.h"
2121
#include "qgsgeometrycheckerror.h"
2222

23-
void QgsGeometryLineLayerIntersectionCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, const QgsGeometryCheckContext *context, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
23+
void QgsGeometryLineLayerIntersectionCheck::collectErrors( const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids ) const
2424
{
2525
Q_UNUSED( messages )
2626

@@ -52,7 +52,7 @@ void QgsGeometryLineLayerIntersectionCheck::collectErrors( const QMap<QString, Q
5252
const QList< QgsPoint > intersections = QgsGeometryCheckerUtils::lineIntersections( line, testLine, mContext->tolerance );
5353
for ( const QgsPoint &inter : intersections )
5454
{
55-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, inter, QgsVertexId( iPart ), checkFeature.id() ) );
55+
errors.append( new QgsGeometryCheckError( this, layerFeature, inter, QgsVertexId( iPart ), checkFeature.id() ) );
5656
}
5757
}
5858
else if ( const QgsPolygon *polygon = dynamic_cast<const QgsPolygon *>( part ) )
@@ -63,7 +63,7 @@ void QgsGeometryLineLayerIntersectionCheck::collectErrors( const QMap<QString, Q
6363
const QList< QgsPoint > intersections = QgsGeometryCheckerUtils::lineIntersections( line, ring, mContext->tolerance );
6464
for ( const QgsPoint &inter : intersections )
6565
{
66-
errors.append( new QgsGeometryCheckError( this, context, layerFeature, inter, QgsVertexId( iPart ), checkFeature.id() ) );
66+
errors.append( new QgsGeometryCheckError( this, layerFeature, inter, QgsVertexId( iPart ), checkFeature.id() ) );
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)