Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -177,7 +177,7 @@ void DocumentObjectT::operator=(const DocumentObject* obj)
|
||||
void DocumentObjectT::operator=(const Property* prop)
|
||||
{
|
||||
if (!prop || !prop->hasName() || !prop->getContainer()
|
||||
|| !prop->getContainer()->isDerivedFrom(App::DocumentObject::getClassTypeId())) {
|
||||
|| !prop->getContainer()->isDerivedFrom<App::DocumentObject>()) {
|
||||
object.clear();
|
||||
label.clear();
|
||||
document.clear();
|
||||
|
||||
Reference in New Issue
Block a user