Skip to content
Permalink
Browse files

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.
  • Loading branch information
m-kuhn committed Aug 13, 2017
1 parent 86e8da7 commit 0df873c505e1563d89e2bf7c52f08e7d02cc064e
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/geometry/qgsgeometry.h
  2. +1 −1 src/core/geometry/qgsgeometryengine.h
@@ -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
@@ -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

0 comments on commit 0df873c

Please sign in to comment.
You can’t perform that action at this time.