mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
core: convert event.c to C++
No code changes. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9f4a72a692
commit
cd9bf7542c
3 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ SOURCES += subsurface-mobile-main.cpp \
|
||||||
core/dive.cpp \
|
core/dive.cpp \
|
||||||
core/divecomputer.cpp \
|
core/divecomputer.cpp \
|
||||||
core/divefilter.cpp \
|
core/divefilter.cpp \
|
||||||
core/event.c \
|
core/event.cpp \
|
||||||
core/eventtype.cpp \
|
core/eventtype.cpp \
|
||||||
core/filterconstraint.cpp \
|
core/filterconstraint.cpp \
|
||||||
core/filterpreset.cpp \
|
core/filterpreset.cpp \
|
||||||
|
|
|
@ -79,7 +79,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
||||||
divesitehelpers.h
|
divesitehelpers.h
|
||||||
downloadfromdcthread.cpp
|
downloadfromdcthread.cpp
|
||||||
downloadfromdcthread.h
|
downloadfromdcthread.h
|
||||||
event.c
|
event.cpp
|
||||||
event.h
|
event.h
|
||||||
eventtype.cpp
|
eventtype.cpp
|
||||||
eventtype.h
|
eventtype.h
|
||||||
|
|
|
@ -49,7 +49,7 @@ struct event *create_event(unsigned int time, int type, int flags, int value, co
|
||||||
unsigned int size, len = strlen(name);
|
unsigned int size, len = strlen(name);
|
||||||
|
|
||||||
size = sizeof(*ev) + len + 1;
|
size = sizeof(*ev) + len + 1;
|
||||||
ev = malloc(size);
|
ev = (struct event*) malloc(size);
|
||||||
if (!ev)
|
if (!ev)
|
||||||
return NULL;
|
return NULL;
|
||||||
memset(ev, 0, size);
|
memset(ev, 0, size);
|
Loading…
Reference in a new issue