Skip to content

Commit 0df873c

Browse files
committedAug 13, 2017
Increase QgsGeometry::OperationResult values
To avoid collisions with old enums and make it easier for plugin devs to determine if their values have already been ported to QGIS 3.0 or not.
1 parent 86e8da7 commit 0df873c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/core/geometry/qgsgeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class CORE_EXPORT QgsGeometry
104104
enum OperationResult
105105
{
106106
Success = 0, //!< Operation succeeded
107-
NothingHappened, //!< Nothing happened, without any error
107+
NothingHappened = 1000, //!< Nothing happened, without any error
108108
InvalidBaseGeometry, //!< The base geometry on which the operation is done is invalid or empty
109109
InvalidInput, //!< The input geometry (ring, part, split line, etc.) has not the correct geometry type
110110
GeometryEngineError, //!< Geometry engine misses a method implemented or an error occured in the geometry engine

‎src/core/geometry/qgsgeometryengine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CORE_EXPORT QgsGeometryEngine
4040
enum EngineOperationResult
4141
{
4242
Success = 0, //!< Operation succeeded
43-
NothingHappened, //!< Nothing happened, without any error
43+
NothingHappened = 1000, //!< Nothing happened, without any error
4444
MethodNotImplemented, //!< Method not implemented in geometry engine
4545
EngineError, //!< Error occured in the geometry engine
4646
NodedGeometryError, //!< Error occured while creating a noded geometry

0 commit comments

Comments
 (0)
Please sign in to comment.