From f3e1187e65df8e3fdd989cbee19ee2b9472c6735 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Mar 2019 22:29:40 +0100 Subject: Cleanup: move parse-function declarations out of "dive.h" Move the declaration of these functions to "file.h" and "parse.h" according to the translation unit they are defined in. Thus, not all users of "dive.h" have to suck in "sqlite3.h". Signed-off-by: Berthold Stoeger --- tests/testdivesiteduplication.cpp | 1 + tests/testparseperformance.cpp | 2 +- tests/testprofile.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/testdivesiteduplication.cpp b/tests/testdivesiteduplication.cpp index 4b770d311..ae8488eb2 100644 --- a/tests/testdivesiteduplication.cpp +++ b/tests/testdivesiteduplication.cpp @@ -2,6 +2,7 @@ #include "testdivesiteduplication.h" #include "core/dive.h" #include "core/divesite.h" +#include "core/file.h" void TestDiveSiteDuplication::testReadV2() { diff --git a/tests/testparseperformance.cpp b/tests/testparseperformance.cpp index 64625f269..37393f515 100644 --- a/tests/testparseperformance.cpp +++ b/tests/testparseperformance.cpp @@ -2,6 +2,7 @@ #include "testparseperformance.h" #include "core/dive.h" #include "core/divelist.h" +#include "core/file.h" #include "core/git-access.h" #include "core/settings/qPrefProxy.h" #include "core/settings/qPrefCloudStorage.h" @@ -41,7 +42,6 @@ void TestParsePerformance::initTestCase() QString localCacheDir(get_local_dir(LARGE_TEST_REPO, "git")); QDir localCacheDirectory(localCacheDir); QCOMPARE(localCacheDirectory.removeRecursively(), true); - } void TestParsePerformance::init() diff --git a/tests/testprofile.cpp b/tests/testprofile.cpp index a093c9fe9..c35312123 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "testprofile.h" #include "core/dive.h" +#include "core/file.h" void TestProfile::testRedCeiling() { -- cgit v1.2.3-70-g09d2