Path: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
acdfde774a
commit
a5d878e498
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user