From b984839836e0ee38fb8e09680d69f34593b9300f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 25 Oct 2020 19:13:42 +0100 Subject: [PATCH] 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 --- backend-shared/exportfuncs.cpp | 1 + commands/command.h | 1 + core/dive.h | 2 -- core/equipment.c | 1 + 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 #include #include 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"