PartDesign: modernize type checking
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user