PartDesign: modernize type checking

This commit is contained in:
Florian Foinant-Willig
2023-10-15 21:39:11 +02:00
parent bce19a969c
commit 24934d7843
26 changed files with 114 additions and 114 deletions

View File

@@ -100,7 +100,7 @@ bool TaskDlgFeatureParameters::accept() {
}
// Make sure the feature is what we are expecting
// Should be fine but you never know...
if ( !feature->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId()) ) {
if ( !feature->isDerivedFrom<PartDesign::Feature>() ) {
throw Base::TypeError("Bad object processed in the feature dialog.");
}