aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-09-28 17:29:50 +0200
committerEike Ziller <eike.ziller@qt.io>2020-10-08 10:38:47 +0000
commit3ee70780b4b61fe10a56871916a42b4e4f06941d (patch)
treeff5ef2f6180cfe590f7c9bc23bbd34d2f4dc5b03 /src/plugins/autotest
parentcf460578ff205517f85ace5056dc91c063bef6c7 (diff)
Qt6: Sprinkle QLatin1Strings for QStringView comparisons
Task-number: QTCREATORBUG-24098 Change-Id: I2fb79bcfd0537a6704a1ee8db840401d6beca7a0 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r--src/plugins/autotest/catch/catchoutputreader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/autotest/catch/catchoutputreader.cpp b/src/plugins/autotest/catch/catchoutputreader.cpp
index 760d5214cb2..4a46c7722ce 100644
--- a/src/plugins/autotest/catch/catchoutputreader.cpp
+++ b/src/plugins/autotest/catch/catchoutputreader.cpp
@@ -143,16 +143,16 @@ void CatchOutputReader::processOutputLine(const QByteArray &outputLineWithNewLin
case QXmlStreamReader::EndElement: {
const auto currentTag = m_xmlReader.name();
- if (currentTag == CatchXml::SectionElement) {
+ if (currentTag == QLatin1String(CatchXml::SectionElement)) {
sendResult(ResultType::TestEnd);
testOutputNodeFinished(SectionNode);
- } else if (currentTag == CatchXml::TestCaseElement) {
+ } else if (currentTag == QLatin1String(CatchXml::TestCaseElement)) {
sendResult(ResultType::TestEnd);
testOutputNodeFinished(TestCaseNode);
- } else if (currentTag == CatchXml::GroupElement) {
+ } else if (currentTag == QLatin1String(CatchXml::GroupElement)) {
testOutputNodeFinished(GroupNode);
- } else if (currentTag == CatchXml::ExpressionElement
- || currentTag == CatchXml::BenchmarkResults) {
+ } else if (currentTag == QLatin1String(CatchXml::ExpressionElement)
+ || currentTag == QLatin1String(CatchXml::BenchmarkResults)) {
sendResult(m_currentResult);
m_currentExpression.clear();
m_testCaseInfo.pop();