Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's

Regex based changes, manually verified
This commit is contained in:
Benjamin Nauck
2025-01-16 21:27:50 +01:00
parent ae15d98fd3
commit dd6aa9f3c7
166 changed files with 484 additions and 497 deletions

View File

@@ -138,7 +138,7 @@ void ViewProviderShapeBinder::highlightReferences(bool on)
App::GeoFeature* obj = nullptr;
std::vector<std::string> subs;
if (getObject()->isDerivedFrom(PartDesign::ShapeBinder::getClassTypeId()))
if (getObject()->isDerivedFrom<PartDesign::ShapeBinder>())
PartDesign::ShapeBinder::getFilteredReferences(&getObject<PartDesign::ShapeBinder>()->Support, obj, subs);
else
return;