summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefUpdateManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefUpdateManager.cpp')
-rw-r--r--tests/testqPrefUpdateManager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/testqPrefUpdateManager.cpp b/tests/testqPrefUpdateManager.cpp
index 259813cbe..8e3047fdb 100644
--- a/tests/testqPrefUpdateManager.cpp
+++ b/tests/testqPrefUpdateManager.cpp
@@ -114,15 +114,14 @@ void TestQPrefUpdateManager::test_multiple()
// test multiple instances have the same information
prefs.update_manager.dont_check_for_updates = false;
- auto tst_direct = new qPrefUpdateManager;
prefs.update_manager.dont_check_exists = false;
auto tst = qPrefUpdateManager::instance();
- QCOMPARE(tst->dont_check_for_updates(), tst_direct->dont_check_for_updates());
+ QCOMPARE(tst->dont_check_for_updates(), qPrefUpdateManager::dont_check_for_updates());
QCOMPARE(tst->dont_check_for_updates(), false);
- QCOMPARE(tst->dont_check_exists(), tst_direct->dont_check_exists());
- QCOMPARE(tst_direct->dont_check_exists(), false);
+ QCOMPARE(tst->dont_check_exists(), qPrefUpdateManager::dont_check_exists());
+ QCOMPARE(qPrefUpdateManager::dont_check_exists(), false);
}
void TestQPrefUpdateManager::test_next_check()