summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefCloudStorage.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-11-23 17:40:56 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 11:48:26 -0800
commit6e846eb4c0c5755ddddbd696aeb6531eab5488d8 (patch)
tree08fb31f179eb2f254f0457b4fa06b22d09ef675d /tests/testqPrefCloudStorage.cpp
parent54f8217eec0df1876086849c8dcc594da709201a (diff)
downloadsubsurface-6e846eb4c0c5755ddddbd696aeb6531eab5488d8.tar.gz
tests: correct testqPref*.cpp to use static qPref* functions.
qPref* set/get functions are static. remove creation of qPref* instances, reference static functions. Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'tests/testqPrefCloudStorage.cpp')
-rw-r--r--tests/testqPrefCloudStorage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testqPrefCloudStorage.cpp b/tests/testqPrefCloudStorage.cpp
index d18c7a6e7..9d55ca743 100644
--- a/tests/testqPrefCloudStorage.cpp
+++ b/tests/testqPrefCloudStorage.cpp
@@ -165,13 +165,11 @@ void TestQPrefCloudStorage::test_multiple()
{
// test multiple instances have the same information
- auto tst_direct = new qPrefCloudStorage;
-
prefs.cloud_timeout = 25;
auto tst = qPrefCloudStorage::instance();
- QCOMPARE(tst->cloud_timeout(), tst_direct->cloud_timeout());
- QCOMPARE(tst_direct->cloud_timeout(), 25);
+ QCOMPARE(tst->cloud_timeout(), qPrefCloudStorage::cloud_timeout());
+ QCOMPARE(qPrefCloudStorage::cloud_timeout(), 25);
}
#define TEST(METHOD, VALUE) \