Skip to content

Commit c2e1ea3

Browse files
committedJul 20, 2021
QgsGeometry::Change operator== should be const
1 parent ec8943f commit c2e1ea3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheck.sip.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ Create a new Change
133133

134134
QgsVertexId vidx;
135135

136-
bool operator==( const QgsGeometryCheck::Change &other );
136+
bool operator==( const QgsGeometryCheck::Change &other ) const;
137+
138+
bool operator!=( const QgsGeometryCheck::Change &other ) const;
137139
};
138140

139141
typedef QMap<QString, QMap<QgsFeatureId, QList<QgsGeometryCheck::Change> > > Changes;

‎src/analysis/vector/geometry_checker/qgsgeometrycheck.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ class ANALYSIS_EXPORT QgsGeometryCheck
202202
QgsVertexId vidx;
203203

204204
// TODO c++20 - replace with = default
205-
bool operator==( const QgsGeometryCheck::Change &other )
205+
bool operator==( const QgsGeometryCheck::Change &other ) const
206206
{
207207
return what == other.what && type == other.type && vidx == other.vidx;
208208
}
209+
210+
bool operator!=( const QgsGeometryCheck::Change &other ) const
211+
{
212+
return !( *this == other );
213+
}
209214
};
210215

211216
/**

0 commit comments

Comments
 (0)
Please sign in to comment.