diff --git a/python/core/auto_generated/qgspointxy.sip.in b/python/core/auto_generated/qgspointxy.sip.in index 0fa4a4dc50fa..7ae55ad34319 100644 --- a/python/core/auto_generated/qgspointxy.sip.in +++ b/python/core/auto_generated/qgspointxy.sip.in @@ -224,7 +224,7 @@ Compares this point with another point with a fuzzy tolerance .. versionadded:: 2.9 %End - bool operator==( const QgsPointXY &other ) /HoldGIL/; + bool operator==( const QgsPointXY &other ) const /HoldGIL/; bool operator!=( const QgsPointXY &other ) const /HoldGIL/; diff --git a/src/core/qgspointxy.h b/src/core/qgspointxy.h index a4d35bfb4642..918c09548552 100644 --- a/src/core/qgspointxy.h +++ b/src/core/qgspointxy.h @@ -261,7 +261,7 @@ class CORE_EXPORT QgsPointXY } //! equality operator - bool operator==( const QgsPointXY &other ) SIP_HOLDGIL + bool operator==( const QgsPointXY &other ) const SIP_HOLDGIL { if ( isEmpty() && other.isEmpty() ) return true;