From f4d62f0f410a3b5229589e9e00901aa693389eaf Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 22 Oct 2024 21:14:38 +0200 Subject: [PATCH] [locale] Repair tests It is unclear how this could have worked previously: the only code path through currentLocationStatus() checks the pointer, also. --- src/modules/locale/Tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/locale/Tests.cpp b/src/modules/locale/Tests.cpp index bc92a8882..a321b2f89 100644 --- a/src/modules/locale/Tests.cpp +++ b/src/modules/locale/Tests.cpp @@ -293,8 +293,8 @@ LocaleTests::testConfigInitialization() { Config c; - QVERIFY( !c.currentLocation() ); - QVERIFY( !c.currentLocationStatus().isEmpty() ); + QCOMPARE( c.currentLocation(), nullptr ); + QVERIFY( c.currentLocationStatus().isEmpty() ); } void