Sketcher: Make GeometryConstructionMode an enum class

=====================================================

Enforce strong typing to avoid all kinds of abusive implicit conversionsm, the corresponding associated bugs and make code more readable.
This commit is contained in:
Abdullah Tahiri
2023-10-21 21:45:35 +02:00
committed by abdullahtahiriyo
parent 82fed5bbfc
commit 3f1f1047b2
16 changed files with 55 additions and 46 deletions

View File

@@ -456,7 +456,7 @@ public:
EditCurve[0].y,
EditCurve[1].x,
EditCurve[1].y,
geometryCreationMode == Construction ? "True" : "False");
constructionModeAsBooleanText());
}
catch (const Base::Exception&) {
addedGeometry = false;
@@ -486,7 +486,7 @@ public:
std::abs(arcRadius),
std::min(startAngle, endAngle),
std::max(startAngle, endAngle),
geometryCreationMode == Construction ? "True" : "False");
constructionModeAsBooleanText());
}
catch (const Base::Exception&) {
addedGeometry = false;