Path: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
34f070cf9b
commit
f4423cfabe
@@ -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<Part::Feature*>(pcDoc->addObject("Part::Feature", name));
|
||||
pcFeature->Shape.setValue(shape);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<voronoi_diagram_type*>(vd));
|
||||
vd->reIndex();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user