core: convert trip.c to C++
Necessary so that we can continue porting the divesite code to C++. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fe41bc06d0
commit
4c94dcaac0
@ -97,7 +97,7 @@ SOURCES += subsurface-mobile-main.cpp \
|
||||
core/tag.cpp \
|
||||
core/taxonomy.cpp \
|
||||
core/time.cpp \
|
||||
core/trip.c \
|
||||
core/trip.cpp \
|
||||
core/units.cpp \
|
||||
core/uemis.cpp \
|
||||
core/btdiscovery.cpp \
|
||||
|
||||
@ -181,7 +181,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
||||
taxonomy.cpp
|
||||
taxonomy.h
|
||||
time.cpp
|
||||
trip.c
|
||||
trip.cpp
|
||||
trip.h
|
||||
uemis-downloader.cpp
|
||||
uemis.cpp
|
||||
|
||||
@ -128,7 +128,7 @@ void remove_dive_from_trip(struct dive *dive, struct trip_table *trip_table_arg)
|
||||
|
||||
dive_trip_t *alloc_trip(void)
|
||||
{
|
||||
dive_trip_t *res = calloc(1, sizeof(dive_trip_t));
|
||||
dive_trip_t *res = (dive_trip_t *)calloc(1, sizeof(dive_trip_t));
|
||||
res->id = dive_getUniqID();
|
||||
return res;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user