App: Replace C cast

This commit is contained in:
marioalexis
2022-05-19 11:11:00 -03:00
committed by Chris Hennes
parent 78cc184d50
commit 9ccb9eecb2
8 changed files with 17 additions and 17 deletions

View File

@@ -90,7 +90,7 @@ DocumentObject::~DocumentObject()
// not to dec'ref the Python object any more.
// But we must still invalidate the Python object because it need not to be
// destructed right now because the interpreter can own several references to it.
Base::PyObjectBase* obj = (Base::PyObjectBase*)PythonObject.ptr();
Base::PyObjectBase* obj = static_cast<Base::PyObjectBase*>(PythonObject.ptr());
// Call before decrementing the reference counter, otherwise a heap error can occur
obj->setInvalid();
}