mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove filterconstraint C boilerplate code
Since all code can now directly access C++ structures these accessor functions were not necessary. Split out the table from the filterconstraint source file and include it directly into the divelog. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2bdcdab391
commit
91968ac579
20 changed files with 212 additions and 250 deletions
|
|
@ -6,16 +6,12 @@
|
|||
#include "dive.h"
|
||||
#include "errorhelper.h"
|
||||
#include "filterpreset.h"
|
||||
#include "filterpresettable.h"
|
||||
#include "trip.h"
|
||||
|
||||
struct divelog divelog;
|
||||
|
||||
divelog::divelog() :
|
||||
filter_presets(std::make_unique<filter_preset_table>()),
|
||||
autogroup(false)
|
||||
{
|
||||
}
|
||||
|
||||
divelog::divelog() = default;
|
||||
divelog::~divelog() = default;
|
||||
divelog::divelog(divelog &&) = default;
|
||||
struct divelog &divelog::operator=(divelog &&) = default;
|
||||
|
|
@ -68,7 +64,7 @@ void divelog::clear()
|
|||
sites.clear();
|
||||
trips.clear();
|
||||
devices.clear();
|
||||
filter_presets->clear();
|
||||
filter_presets.clear();
|
||||
}
|
||||
|
||||
/* check if we have a trip right before / after this dive */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue