From f4423cfabed9d8f210c55dbbf30e79b528956492 Mon Sep 17 00:00:00 2001 From: marioalexis Date: Fri, 17 Jun 2022 12:12:38 -0300 Subject: [PATCH] Path: Replace C cast --- src/Mod/Path/App/Area.cpp | 2 +- src/Mod/Path/App/Voronoi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index b216e2fa3d..9c258271a3 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -1083,7 +1083,7 @@ void Area::showShape(const TopoDS_Shape& shape, const char* name, const char* fm va_end(args); name = buf; } - Part::Feature* pcFeature = (Part::Feature*)pcDoc->addObject("Part::Feature", name); + Part::Feature* pcFeature = static_cast(pcDoc->addObject("Part::Feature", name)); pcFeature->Shape.setValue(shape); } } diff --git a/src/Mod/Path/App/Voronoi.cpp b/src/Mod/Path/App/Voronoi.cpp index 4cdb8a5d0f..d382da4c34 100644 --- a/src/Mod/Path/App/Voronoi.cpp +++ b/src/Mod/Path/App/Voronoi.cpp @@ -180,7 +180,7 @@ long Voronoi::numVertices() const { void Voronoi::construct() { vd->clear(); - construct_voronoi(vd->points.begin(), vd->points.end(), vd->segments.begin(), vd->segments.end(), (voronoi_diagram_type*)vd); + construct_voronoi(vd->points.begin(), vd->points.end(), vd->segments.begin(), vd->segments.end(), static_cast(vd)); vd->reIndex(); }