mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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
1336d8d024
commit
3394ce7931
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