Gui: Replace C cast

This commit is contained in:
marioalexis
2022-06-17 12:00:26 -03:00
committed by Chris Hennes
parent 209c78d43e
commit ff1b4eff05
36 changed files with 156 additions and 152 deletions

View File

@@ -896,7 +896,7 @@ PyObject *LinkView::getPyObject()
void LinkView::setInvalid() {
if (!PythonObject.is(Py::_None())){
auto obj = (Base::PyObjectBase*)PythonObject.ptr();
auto obj = static_cast<Base::PyObjectBase*>(PythonObject.ptr());
obj->setInvalid();
obj->DecRef();
}else
@@ -2835,7 +2835,7 @@ void ViewProviderLink::setEditViewer(Gui::View3DInventorViewer* viewer, int ModN
// we use an invisible cube sized by the bounding box obtained from
// initDraggingPlacement() to scale the centerball dragger properly
auto * ss = (SoSurroundScale*)dragger->getPart("surroundScale", TRUE);
auto * ss = static_cast<SoSurroundScale*>(dragger->getPart("surroundScale", TRUE));
ss->numNodesUpToContainer = 3;
ss->numNodesUpToReset = 2;