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>
This commit is contained in:
Berthold Stoeger 2020-10-25 19:13:42 +01:00 committed by Dirk Hohndel
parent a719bfbeaf
commit b984839836
4 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

@ -4,6 +4,7 @@
#include "core/dive.h"
#include "core/pictureobj.h"
#include "core/taxonomy.h"
#include <QVector>
#include <QAction>
#include <vector>

View file

@ -233,6 +233,4 @@ Q_DECLARE_METATYPE(struct dive *);
#endif
#include "pref.h"
#endif // DIVE_H

View file

@ -16,6 +16,7 @@
#include "dive.h"
#include "display.h"
#include "divelist.h"
#include "pref.h"
#include "subsurface-string.h"
#include "table.h"