summaryrefslogtreecommitdiff
path: root/qt5/tests
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-04-02 01:14:30 +0200
committerAlbert Astals Cid <aacid@kde.org>2019-04-02 01:14:30 +0200
commiteec84fe2d2dad20acdfb47cf06f8171e6f9e74dc (patch)
treec17ee67dd7e1132fa0172be64ceb8fad532af625 /qt5/tests
parent07067734e9e8b39889b5569e72bb64095773b564 (diff)
Make test pass on MSVC
QStringliteral+MSVC+non ascii chars doesn't play very well
Diffstat (limited to 'qt5/tests')
-rw-r--r--qt5/tests/check_annotations.cpp2
1 files changed, 1 insertions, 1 deletions
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)