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:
Berthold Stoeger 2024-05-04 15:55:40 +02:00 committed by bstoeger
parent 177246b419
commit 3916125786
3 changed files with 3 additions and 3 deletions

View file

@ -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 \

View file

@ -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

View file

@ -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;
}