mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
QgsGeometry::Change operator== should be const
This commit is contained in:
parent
ec8943fe4b
commit
c2e1ea3b39
@ -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<QString, QMap<QgsFeatureId, QList<QgsGeometryCheck::Change> > > Changes;
|
||||
|
@ -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 );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user