From 70757f8ae367b9d4ef88073030c12cba603c8e2c Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 1 Nov 2021 18:27:32 +0100 Subject: [PATCH] Sketcher: Constraint.h - add underlying type to PointPos enum ============================================================== This enables forward declarations. --- src/Mod/Sketcher/App/Constraint.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/App/Constraint.h b/src/Mod/Sketcher/App/Constraint.h index 03a8bcdc47..b1f1b7ffb5 100644 --- a/src/Mod/Sketcher/App/Constraint.h +++ b/src/Mod/Sketcher/App/Constraint.h @@ -82,10 +82,12 @@ enum InternalAlignmentType { * complex geometries like parabola focus or b-spline knots use InternalAlignment constraints * in addition to PointPos. */ -enum PointPos { none = 0, - start = 1, - end = 2, - mid = 3 }; +enum PointPos : int { + none = 0, + start = 1, + end = 2, + mid = 3 +}; class SketcherExport Constraint : public Base::Persistence {