Gui: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
585d277e49
commit
ef357aa07a
@@ -62,7 +62,7 @@ void ActiveObjectList::setHighlight(const ObjectInfo &info, HighlightMode mode,
|
||||
auto obj = getObject(info, false);
|
||||
if (!obj)
|
||||
return;
|
||||
auto vp = dynamic_cast<ViewProviderDocumentObject*>(Application::Instance->getViewProvider(obj));
|
||||
auto vp = freecad_cast<ViewProviderDocumentObject*>(Application::Instance->getViewProvider(obj));
|
||||
if (!vp)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user