From 66ceac75a3c1ef6a79704fac67019f42f85b0208 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Mon, 29 Apr 2024 17:02:31 +0200 Subject: [PATCH] Update testqgsogrutils.cpp --- tests/src/core/testqgsogrutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/core/testqgsogrutils.cpp b/tests/src/core/testqgsogrutils.cpp index 2deb86d4e4f3..0a28627d2228 100644 --- a/tests/src/core/testqgsogrutils.cpp +++ b/tests/src/core/testqgsogrutils.cpp @@ -1104,7 +1104,7 @@ void TestQgsOgrUtils::testOgrUtilsStoredStyle() QCOMPARE( ids.size(), 3 ); QCOMPARE( names.size(), 3 ); QCOMPARE( descriptions.size(), 3 ); - QCOMPARE( names.toSet(), QSet() << QStringLiteral( "style1" ) << QStringLiteral( "style2" ) << QStringLiteral( "style3" ) ); + QCOMPARE( QSet( names.constBegin(), names.constEnd() ), QSet() << QStringLiteral( "style1" ) << QStringLiteral( "style2" ) << QStringLiteral( "style3" ) ); }