[poppler] qt5/tests
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 1 23:24:20 UTC 2019
qt5/tests/check_annotations.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit eec84fe2d2dad20acdfb47cf06f8171e6f9e74dc
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue Apr 2 01:14:30 2019 +0200
Make test pass on MSVC
QStringliteral+MSVC+non ascii chars doesn't play very well
diff --git a/qt5/tests/check_annotations.cpp b/qt5/tests/check_annotations.cpp
index 95a30ac8..1145ceec 100644
--- a/qt5/tests/check_annotations.cpp
+++ b/qt5/tests/check_annotations.cpp
@@ -152,7 +152,7 @@ void TestAnnotations::checkUTF16LEAnnot()
QCOMPARE(annots.size(), 2);
auto annot = annots[1];
- QCOMPARE(annot->contents(), QStringLiteral("Únîcödé豰"));
+ QCOMPARE(annot->contents(), QString::fromUtf8("Únîcödé豰")); //clazy:exclude=qstring-allocations
}
QTEST_GUILESS_MAIN(TestAnnotations)
More information about the poppler
mailing list