summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefDisplay.cpp')
-rw-r--r--tests/testqPrefDisplay.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testqPrefDisplay.cpp b/tests/testqPrefDisplay.cpp
index 32fe1b927..5992b1bf2 100644
--- a/tests/testqPrefDisplay.cpp
+++ b/tests/testqPrefDisplay.cpp
@@ -154,15 +154,13 @@ void TestQPrefDisplay::test_struct_disk()
void TestQPrefDisplay::test_multiple()
{
// test multiple instances have the same information
- auto display_direct = qPrefDisplay::instance();
prefs.divelist_font = copy_qstring("comic");
-
auto display = qPrefDisplay::instance();
prefs.font_size = 15.0;
- QCOMPARE(display->divelist_font(), display_direct->divelist_font());
+ QCOMPARE(display->divelist_font(), qPrefDisplay::divelist_font());
QCOMPARE(display->divelist_font(), QString("comic"));
- QCOMPARE(display->font_size(), display_direct->font_size());
+ QCOMPARE(display->font_size(), qPrefDisplay::font_size());
QCOMPARE(display->font_size(), 15.0);
}