Skip to content

Commit

Permalink
Increase QgsGeometry::OperationResult values
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
m-kuhn committed Aug 13, 2017
1 parent 86e8da7 commit 0df873c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.h
Expand Up @@ -104,7 +104,7 @@ class CORE_EXPORT QgsGeometry
enum OperationResult
{
Success = 0, //!< Operation succeeded
NothingHappened, //!< Nothing happened, without any error
NothingHappened = 1000, //!< Nothing happened, without any error
InvalidBaseGeometry, //!< The base geometry on which the operation is done is invalid or empty
InvalidInput, //!< The input geometry (ring, part, split line, etc.) has not the correct geometry type
GeometryEngineError, //!< Geometry engine misses a method implemented or an error occured in the geometry engine
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryengine.h
Expand Up @@ -40,7 +40,7 @@ class CORE_EXPORT QgsGeometryEngine
enum EngineOperationResult
{
Success = 0, //!< Operation succeeded
NothingHappened, //!< Nothing happened, without any error
NothingHappened = 1000, //!< Nothing happened, without any error
MethodNotImplemented, //!< Method not implemented in geometry engine
EngineError, //!< Error occured in the geometry engine
NodedGeometryError, //!< Error occured while creating a noded geometry
Expand Down

0 comments on commit 0df873c

Please sign in to comment.