[Kernel] More cleanup

This commit is contained in:
wheremyfoodat 2022-09-19 23:27:54 +03:00
parent ad07c70772
commit f100601caf
5 changed files with 32 additions and 31 deletions

View file

@ -11,11 +11,7 @@ const char* Kernel::resetTypeToString(u32 type) {
Handle Kernel::makeEvent(ResetType resetType) {
Handle ret = makeObject(KernelObjectType::Event);
objects[ret].data = new EventData();
auto eventData = static_cast<EventData*>(objects[ret].data);
eventData->resetType = resetType;
objects[ret].data = new Event(resetType);
return ret;
}