Skip to content

Commit

Permalink
Dox ++
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent a9ba935 commit bab01b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -829,6 +829,12 @@ geometries of different types.
Compares to an ``other`` geometry of the same class, and returns a integer
for sorting of the two geometries.

.. note::

The actual logic for the sorting is an internal detail only and is subject to change
between QGIS versions. The result should only be used for direct comparison of geometries
and not stored for later use.

.. versionadded:: 3.20
%End

Expand Down
4 changes: 4 additions & 0 deletions src/core/geometry/qgsabstractgeometry.h
Expand Up @@ -1045,6 +1045,10 @@ class CORE_EXPORT QgsAbstractGeometry
* Compares to an \a other geometry of the same class, and returns a integer
* for sorting of the two geometries.
*
* \note The actual logic for the sorting is an internal detail only and is subject to change
* between QGIS versions. The result should only be used for direct comparison of geometries
* and not stored for later use.
*
* \since QGIS 3.20
*/
virtual int compareToSameClass( const QgsAbstractGeometry *other ) const = 0;
Expand Down

0 comments on commit bab01b1

Please sign in to comment.