mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive sites: prepare for dive site ref-counting
Add a dive site table to each dive site to keep track of dives that have been added to a dive site. Add two functions to add dives to / remove dives from dive sites. Since dive sites now contain a dive table, the order of includes had to be changed: "divesite.h" now includes "dive.h" and not vice-versa. This caused some include churn. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f2cdca7bcc
commit
c22fd9f4fd
38 changed files with 75 additions and 29 deletions
|
@ -16,7 +16,7 @@
|
|||
#include "desktop-widgets/mainwindow.h"
|
||||
#include "profile-widget/profilewidget2.h"
|
||||
#include "core/save-profiledata.h"
|
||||
#include "core/dive.h" // Allows access to helper functions in TeX export.
|
||||
#include "core/divesite.h"
|
||||
|
||||
// Retrieves the current unit settings defined in the Subsurface preferences.
|
||||
#define GET_UNIT(name, field, f, t) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue