qt5/tests/check_annotations.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eec84fe2d2dad20acdfb47cf06f8171e6f9e74dc
Author: Albert Astals Cid <[email protected]>
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)
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to