Part: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
a5071587de
commit
2fb8b2d7f1
@@ -1285,7 +1285,7 @@ void GeomBezierCurve::Restore(Base::XMLReader& reader)
|
||||
|
||||
PyObject *GeomBezierCurve::getPyObject()
|
||||
{
|
||||
return new BezierCurvePy(dynamic_cast<GeomBezierCurve*>(this->clone()));
|
||||
return new BezierCurvePy(freecad_cast<GeomBezierCurve*>(this->clone()));
|
||||
}
|
||||
|
||||
bool GeomBezierCurve::isSame(const Geometry &_other, double tol, double) const
|
||||
@@ -2059,7 +2059,7 @@ void GeomBSplineCurve::Restore(Base::XMLReader& reader)
|
||||
|
||||
PyObject *GeomBSplineCurve::getPyObject()
|
||||
{
|
||||
return new BSplineCurvePy(dynamic_cast<GeomBSplineCurve*>(this->clone()));
|
||||
return new BSplineCurvePy(freecad_cast<GeomBSplineCurve*>(this->clone()));
|
||||
}
|
||||
|
||||
bool GeomBSplineCurve::isSame(const Geometry &_other, double tol, double atol) const
|
||||
@@ -4698,7 +4698,7 @@ void GeomLineSegment::Restore (Base::XMLReader &reader)
|
||||
|
||||
PyObject *GeomLineSegment::getPyObject()
|
||||
{
|
||||
return new LineSegmentPy(dynamic_cast<GeomLineSegment*>(this->clone()));
|
||||
return new LineSegmentPy(freecad_cast<GeomLineSegment*>(this->clone()));
|
||||
}
|
||||
|
||||
// -------------------------------------------------
|
||||
@@ -4769,7 +4769,7 @@ void GeomOffsetCurve::Restore(Base::XMLReader &/*reader*/)
|
||||
|
||||
PyObject *GeomOffsetCurve::getPyObject()
|
||||
{
|
||||
return new OffsetCurvePy(dynamic_cast<GeomOffsetCurve*>(this->clone()));
|
||||
return new OffsetCurvePy(freecad_cast<GeomOffsetCurve*>(this->clone()));
|
||||
}
|
||||
|
||||
bool GeomOffsetCurve::isSame(const Geometry &_other, double tol, double atol) const
|
||||
|
||||
Reference in New Issue
Block a user