mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
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
177246b419
commit
3916125786
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue