aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDiveComputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefDiveComputer.cpp')
-rw-r--r--tests/testqPrefDiveComputer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testqPrefDiveComputer.cpp b/tests/testqPrefDiveComputer.cpp
index fff589c17..36967bea6 100644
--- a/tests/testqPrefDiveComputer.cpp
+++ b/tests/testqPrefDiveComputer.cpp
@@ -101,12 +101,11 @@ void TestQPrefDiveComputer::test_struct_disk()
void TestQPrefDiveComputer::test_multiple()
{
// test multiple instances have the same information
- auto tst_direct = new qPrefDiveComputer;
auto tst = qPrefDiveComputer::instance();
prefs.dive_computer.device = copy_qstring("mine");
- QCOMPARE(tst->device(), tst_direct->device());
+ QCOMPARE(tst->device(), qPrefDiveComputer::device());
QCOMPARE(tst->device(), QString("mine"));
}