mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert uemis.c to C++
The uemis code is wild. It simply doesn't deallocate memory and uses global variables. To get this under control, create a "struct uemis" and make the functions exported by "uemis.h" members of "struct uemis". Thus, we don't have to carry around a parameter for the state of the importing process. Turn a linked list of "helper" structures (one per imported dive) into a std::unordered_map, to fix leaking of the helper structures. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cdc87618da
commit
b28d6cf0fc
6 changed files with 122 additions and 147 deletions
|
|
@ -99,7 +99,7 @@ SOURCES += subsurface-mobile-main.cpp \
|
|||
core/time.cpp \
|
||||
core/trip.c \
|
||||
core/units.c \
|
||||
core/uemis.c \
|
||||
core/uemis.cpp \
|
||||
core/btdiscovery.cpp \
|
||||
core/connectionlistmodel.cpp \
|
||||
core/qt-ble.cpp \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue