[poppler] qt5/tests
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 3 11:39:09 UTC 2023
qt5/tests/check_utf8document.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ed7a7887050dd0095ebca2ec7b511f3131242efa
Author: Sune Vuorela <sune at vuorela.dk>
Date: Mon Jul 3 12:40:56 2023 +0200
MSVC still unhappy with unicode bits in unicode test
diff --git a/qt5/tests/check_utf8document.cpp b/qt5/tests/check_utf8document.cpp
index 2b14b493..a67294ea 100644
--- a/qt5/tests/check_utf8document.cpp
+++ b/qt5/tests/check_utf8document.cpp
@@ -48,7 +48,7 @@ void TestUtf8Document::checkStrings()
QCOMPARE(outlineItems->size(), 3);
QCOMPARE(outlineItemTitle(outlineItems->at(0)), QString::fromUtf8("PDF 2.0 with UTF-8 test file")); // clazy:exclude=qstring-allocations
- QCOMPARE(outlineItemTitle(outlineItems->at(1)), QString::fromUtf8("\u202A\u202Atest\u202A")); // clazy:exclude=qstring-allocations
+ QCOMPARE(outlineItemTitle(outlineItems->at(1)), QStringLiteral(u"\u202A\u202Atest\u202A"));
QCOMPARE(outlineItemTitle(outlineItems->at(2)), QString::fromUtf8("🌈️\n" /*emoji rainbow flag*/)); // clazy:exclude=qstring-allocations
}
More information about the poppler
mailing list