mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: redo eventname handling
The eventname handling code was splattered all over the place. Collect it in a single source file and use C++ idioms to avoid nasty memory management. Provide a C-only interface, however. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ab7b9329c0
commit
0d3c9954f4
10 changed files with 94 additions and 70 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "divesite.h"
|
||||
#include "dive.h"
|
||||
#include "event.h"
|
||||
#include "eventname.h"
|
||||
#include "filterpreset.h"
|
||||
#include "fulltext.h"
|
||||
#include "interpolate.h"
|
||||
|
|
@ -1375,7 +1376,7 @@ void clear_dive_file_data()
|
|||
|
||||
clear_dive(&displayed_dive);
|
||||
clear_device_table(&device_table);
|
||||
clear_events();
|
||||
clear_event_names();
|
||||
clear_filter_presets();
|
||||
|
||||
reset_min_datafile_version();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue