App: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
019a25ad75
commit
7accf81bbe
@@ -482,7 +482,7 @@ PyObject* PropertyContainerPy::getEnumerationsOfProperty(PyObject* args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PropertyEnumeration* enumProp = dynamic_cast<PropertyEnumeration*>(prop);
|
||||
PropertyEnumeration* enumProp = freecad_cast<PropertyEnumeration*>(prop);
|
||||
if (!enumProp) {
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user