summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefUnits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefUnits.cpp')
-rw-r--r--tests/testqPrefUnits.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testqPrefUnits.cpp b/tests/testqPrefUnits.cpp
index 122a35ce9..decae35a8 100644
--- a/tests/testqPrefUnits.cpp
+++ b/tests/testqPrefUnits.cpp
@@ -152,14 +152,13 @@ void TestQPrefUnits::test_multiple()
// test multiple instances have the same information
prefs.units.length = units::METERS;
- auto tst_direct = new qPrefUnits;
prefs.units.pressure = units::BAR;
auto tst = qPrefUnits::instance();
- QCOMPARE(tst->length(), tst_direct->length());
+ QCOMPARE(tst->length(), qPrefUnits::length());
QCOMPARE(tst->length(), units::METERS);
- QCOMPARE(tst->pressure(), tst_direct->pressure());
+ QCOMPARE(tst->pressure(), qPrefUnits::pressure());
QCOMPARE(tst->pressure(), units::BAR);
}