diff --git a/python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheck.sip.in b/python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheck.sip.in index caeb63b254a..ab5c37c9421 100644 --- a/python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheck.sip.in +++ b/python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheck.sip.in @@ -133,7 +133,9 @@ Create a new Change QgsVertexId vidx; - bool operator==( const QgsGeometryCheck::Change &other ); + bool operator==( const QgsGeometryCheck::Change &other ) const; + + bool operator!=( const QgsGeometryCheck::Change &other ) const; }; typedef QMap > > Changes; diff --git a/src/analysis/vector/geometry_checker/qgsgeometrycheck.h b/src/analysis/vector/geometry_checker/qgsgeometrycheck.h index d0c5bb45377..479993b92a6 100644 --- a/src/analysis/vector/geometry_checker/qgsgeometrycheck.h +++ b/src/analysis/vector/geometry_checker/qgsgeometrycheck.h @@ -202,10 +202,15 @@ class ANALYSIS_EXPORT QgsGeometryCheck QgsVertexId vidx; // TODO c++20 - replace with = default - bool operator==( const QgsGeometryCheck::Change &other ) + bool operator==( const QgsGeometryCheck::Change &other ) const { return what == other.what && type == other.type && vidx == other.vidx; } + + bool operator!=( const QgsGeometryCheck::Change &other ) const + { + return !( *this == other ); + } }; /**