summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--backend-shared/exportfuncs.cpp1
-rw-r--r--commands/command.h1
-rw-r--r--core/dive.h2
-rw-r--r--core/equipment.c1
4 files changed, 3 insertions, 2 deletions
diff --git a/backend-shared/exportfuncs.cpp b/backend-shared/exportfuncs.cpp
index 469e078a4..24f133377 100644
--- a/backend-shared/exportfuncs.cpp
+++ b/backend-shared/exportfuncs.cpp
@@ -13,6 +13,7 @@
#include "core/divefilter.h"
#include "core/divesite.h"
#include "core/picture.h"
+#include "core/pref.h"
#include "core/sample.h"
#include "exportfuncs.h"
diff --git a/commands/command.h b/commands/command.h
index a18fc5dd6..bb6edcd81 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -4,6 +4,7 @@
#include "core/dive.h"
#include "core/pictureobj.h"
+#include "core/taxonomy.h"
#include <QVector>
#include <QAction>
#include <vector>
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"