summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefGeocoding.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/testqPrefGeocoding.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/testqPrefGeocoding.cpp')
-rw-r--r--tests/testqPrefGeocoding.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testqPrefGeocoding.cpp b/tests/testqPrefGeocoding.cpp
index aec602339..ff936a069 100644
--- a/tests/testqPrefGeocoding.cpp
+++ b/tests/testqPrefGeocoding.cpp
@@ -93,13 +93,11 @@ void TestQPrefGeocoding::test_multiple()
// test multiple instances have the same information
prefs.geocoding.category[0] = TC_NONE;
- auto tst_direct = new qPrefGeocoding;
-
prefs.geocoding.category[1] = TC_OCEAN;
auto tst = qPrefGeocoding::instance();
- QCOMPARE(tst->first_taxonomy_category(), tst_direct->first_taxonomy_category());
- QCOMPARE(tst->second_taxonomy_category(), tst_direct->second_taxonomy_category());
+ QCOMPARE(tst->first_taxonomy_category(), qPrefGeocoding::first_taxonomy_category());
+ QCOMPARE(tst->second_taxonomy_category(), qPrefGeocoding::second_taxonomy_category());
QCOMPARE(tst->first_taxonomy_category(), TC_NONE);
QCOMPARE(tst->second_taxonomy_category(), TC_OCEAN);
}