@@ -525,7 +525,7 @@ void checkAmbiguousCreation(BaseNode* self, const std::string& name, const std::
525525
526526}
527527
528- void checkAmbiguousCreation (BaseObject * self, const std::string& name, const std::string& type)
528+ void checkAmbiguousCreation (BaseComponent * self, const std::string& name, const std::string& type)
529529{
530530 if (!self) return ;
531531
@@ -543,14 +543,14 @@ void checkAmbiguousCreation(BaseObject* self, const std::string& name, const std
543543void checkAmbiguousCreation (Base* self, const std::string& name, const std::string& type)
544544{
545545 checkAmbiguousCreation (dynamic_cast <BaseNode*>(self), name, type);
546- checkAmbiguousCreation (dynamic_cast <BaseObject *>(self), name, type);
546+ checkAmbiguousCreation (dynamic_cast <BaseComponent *>(self), name, type);
547547}
548548
549549void checkAmbiguousCreation (py::object& py_self, const std::string& name, const std::string& type)
550550{
551551 Base* self = py::cast<Base*>(py_self);
552552 checkAmbiguousCreation (dynamic_cast <BaseNode*>(self), name, type);
553- checkAmbiguousCreation (dynamic_cast <BaseObject *>(self), name, type);
553+ checkAmbiguousCreation (dynamic_cast <BaseComponent *>(self), name, type);
554554
555555 if (py_self.attr (" __dict__" ).contains (name))
556556 msg_warning (self) << " Ambiguous creation of " << type << " named '" << name << " ' in " << self->getName () << " : Component alread has a python attribute with such name in __dict__" ;
@@ -581,7 +581,7 @@ BaseData* addData(py::object py_self, const std::string& name, py::object value,
581581 data = deriveTypeFromParent (dynamic_cast <BaseNode*>(self)->getContext (),
582582 py::cast<py::str>(value));
583583 else
584- data = deriveTypeFromParent (dynamic_cast <BaseObject *>(self)->getContext (),
584+ data = deriveTypeFromParent (dynamic_cast <BaseComponent *>(self)->getContext (),
585585 py::cast<py::str>(value));
586586 if (!data)
587587 throw py::type_error (" Cannot deduce type from value" );
0 commit comments