summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-25 19:13:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:59:52 -0700
commitb984839836e0ee38fb8e09680d69f34593b9300f (patch)
tree979d4d49c1e5c60e1e20f92b058b46d64d682bf7 /core
parenta719bfbeaf5c1956d2ba921c429b47619888b453 (diff)
downloadsubsurface-b984839836e0ee38fb8e09680d69f34593b9300f.tar.gz
cleanup: remove pref.h include in dive.h
If source files want to access preferences functions, they should include pref.h themselves. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r--core/dive.h2
-rw-r--r--core/equipment.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h
index 80fde1356..40298d85e 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -233,6 +233,4 @@ Q_DECLARE_METATYPE(struct dive *);
#endif
-#include "pref.h"
-
#endif // DIVE_H
diff --git a/core/equipment.c b/core/equipment.c
index 323bab3d8..2fab787eb 100644
--- a/core/equipment.c
+++ b/core/equipment.c
@@ -16,6 +16,7 @@
#include "dive.h"
#include "display.h"
#include "divelist.h"
+#include "pref.h"
#include "subsurface-string.h"
#include "table.h"