Base: Use explicit pointer syntax for freecad_cast (#20694)
* Base: Use explicit pointer syntax for freecad_cast This aligns our custom cast with other casts * All: Use explicit pointer syntax for freecad_cast
This commit is contained in:
@@ -192,7 +192,7 @@ void ViewProvider::onChanged(const App::Property* prop) {
|
||||
for(App::DocumentObject* obj : body->Group.getValues()) {
|
||||
|
||||
if(obj->isDerivedFrom<PartDesign::Feature>() && obj != getObject()) {
|
||||
auto vpd = freecad_cast<Gui::ViewProviderDocumentObject>(
|
||||
auto vpd = freecad_cast<Gui::ViewProviderDocumentObject*>(
|
||||
Gui::Application::Instance->getViewProvider(obj));
|
||||
if(vpd && vpd->Visibility.getValue())
|
||||
vpd->Visibility.setValue(false);
|
||||
|
||||
Reference in New Issue
Block a user