diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-26 16:33:09 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-28 11:15:11 +0200 |
commit | 79cf895c700f2a700479eae10cf538d0860e1d29 (patch) | |
tree | 8b32cd14f396e922faf855751290f22a0ea8a355 /src/testlib/qjunittestlogger.cpp | |
parent | c038fa9e774d8531ccb975e6ca1541358830847e (diff) |
QtTestLib: stop using QLatin1Char constructor for creating char literals
Required for porting away from QLatin1Char/QLatin1String in scope of
QTBUG-98434.
Change-Id: I3debae5f481037958bfb65caabca97a0d4681eb9
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/qjunittestlogger.cpp')
-rw-r--r-- | src/testlib/qjunittestlogger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qjunittestlogger.cpp b/src/testlib/qjunittestlogger.cpp index c185e652c9..fa817efd4f 100644 --- a/src/testlib/qjunittestlogger.cpp +++ b/src/testlib/qjunittestlogger.cpp @@ -272,8 +272,8 @@ void QJUnitTestLogger::addFailure(QTest::LogElementType elementType, failureElement->addAttribute(QTest::AI_Type, failureType); // Assume the first line is the message, and the remainder are details - QString message = failureDescription.section(QLatin1Char('\n'), 0, 0); - QString details = failureDescription.section(QLatin1Char('\n'), 1); + QString message = failureDescription.section(u'\n', 0, 0); + QString details = failureDescription.section(u'\n', 1); failureElement->addAttribute(QTest::AI_Message, message.toUtf8().constData()); |