core: convert event.c to C++

No code changes.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-03 21:38:11 +02:00
parent 9f4a72a692
commit cd9bf7542c
3 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ SOURCES += subsurface-mobile-main.cpp \
core/dive.cpp \
core/divecomputer.cpp \
core/divefilter.cpp \
core/event.c \
core/event.cpp \
core/eventtype.cpp \
core/filterconstraint.cpp \
core/filterpreset.cpp \

View file

@ -79,7 +79,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
divesitehelpers.h
downloadfromdcthread.cpp
downloadfromdcthread.h
event.c
event.cpp
event.h
eventtype.cpp
eventtype.h

View file

@ -49,7 +49,7 @@ struct event *create_event(unsigned int time, int type, int flags, int value, co
unsigned int size, len = strlen(name);
size = sizeof(*ev) + len + 1;
ev = malloc(size);
ev = (struct event*) malloc(size);
if (!ev)
return NULL;
memset(ev, 0, size);