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:
committed by
abdullahtahiriyo
parent
82fed5bbfc
commit
3f1f1047b2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user