new object creation interface

This commit is contained in:
IlyaShurupov 2024-03-25 10:25:25 +03:00 committed by Ilya Shurupov
parent ca1ae75b07
commit cf3f8dbc9c
23 changed files with 103 additions and 84 deletions

View file

@ -13,7 +13,7 @@ void LinkObject::destructor(LinkObject* self) {
void LinkObject::copy(LinkObject* self, const LinkObject* in) { self->setLink(in->link); }
LinkObject* LinkObject::create(Object* in) {
auto out = objects_api::cast<LinkObject>(NDO->create("link"));
auto out = objects_api::create<LinkObject>();
return out;
}