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:
@@ -94,8 +94,8 @@ ViewProviderFemAnalysis* getAnalyzeView(App::DocumentObject* obj)
|
||||
ViewProviderFemAnalysis* analyzeView = nullptr;
|
||||
App::DocumentObject* grp = App::GroupExtension::getGroupOfObject(obj);
|
||||
|
||||
if (Fem::FemAnalysis* analyze = freecad_cast<Fem::FemAnalysis>(grp)) {
|
||||
analyzeView = freecad_cast<ViewProviderFemAnalysis>(
|
||||
if (Fem::FemAnalysis* analyze = freecad_cast<Fem::FemAnalysis*>(grp)) {
|
||||
analyzeView = freecad_cast<ViewProviderFemAnalysis*>(
|
||||
Gui::Application::Instance->getViewProvider(analyze));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user