diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-03 22:29:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | f3e1187e65df8e3fdd989cbee19ee2b9472c6735 (patch) | |
tree | 8127944c08d889184c980b1dfd94d611e09357f5 /tests | |
parent | 7c64822b9b73ef76e2310ff2931f76e29899535e (diff) | |
download | subsurface-f3e1187e65df8e3fdd989cbee19ee2b9472c6735.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdivesiteduplication.cpp | 1 | ||||
-rw-r--r-- | tests/testparseperformance.cpp | 2 | ||||
-rw-r--r-- | tests/testprofile.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
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() { |