Merge pull request #19097 from hyarion/refactor/template-based-is-derived-from

Simplify code by using BaseClass' isDerivedFrom<> and is<>
This commit is contained in:
Max Wilfinger
2025-01-27 20:40:08 +01:00
committed by GitHub
191 changed files with 655 additions and 710 deletions

View File

@@ -573,7 +573,7 @@ void DrawView::handleChangedPropertyType(Base::XMLReader &reader, const char * T
}
}
}
else if (prop->isDerivedFrom(App::PropertyLinkList::getClassTypeId())
else if (prop->isDerivedFrom<App::PropertyLinkList>()
&& strcmp(prop->getName(), "Source") == 0) {
App::PropertyLinkGlobal glink;
App::PropertyLink link;