summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternssdk/TestResult.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2020-01-21 03:04:51 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2020-01-21 03:04:52 +0100
commitff18ac06286c453acfd3929ebc806229cd1eb69f (patch)
tree20e62c671f0aed3695da7148f28f685daa008ed2 /tests/auto/xmlpatternssdk/TestResult.cpp
parent3ab7db4af2f6fba953454e8bcd6ee982198637ae (diff)
parente263fec484d23fc2e652f538f39934b5364339e1 (diff)
downloadqtxmlpatterns-ff18ac06286c453acfd3929ebc806229cd1eb69f.tar.gz
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: Ia0f79b0c59c6339e471533b644f40995d8c4df37
Diffstat (limited to 'tests/auto/xmlpatternssdk/TestResult.cpp')
-rw-r--r--tests/auto/xmlpatternssdk/TestResult.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/xmlpatternssdk/TestResult.cpp b/tests/auto/xmlpatternssdk/TestResult.cpp
index 5629971..5599ab4 100644
--- a/tests/auto/xmlpatternssdk/TestResult.cpp
+++ b/tests/auto/xmlpatternssdk/TestResult.cpp
@@ -94,12 +94,12 @@ TestResult::~TestResult()
void TestResult::toXML(XMLWriter &receiver) const
{
- QXmlAttributes atts;
- atts.append(QLatin1String("name"), QString(), QLatin1String("name"), m_testName);
- atts.append(QLatin1String("result"), QString(), QLatin1String("result"), displayName(m_status));
+ QXmlStreamAttributes atts;
+ atts.append(QLatin1String("name"), m_testName);
+ atts.append(QLatin1String("result"), displayName(m_status));
if(!m_comment.isEmpty())
- atts.append(QLatin1String("comment"), QString(), QLatin1String("comment"), m_comment);
+ atts.append(QLatin1String("comment"), m_comment);
receiver.startElement(QLatin1String("test-case"), atts);
receiver.endElement(QLatin1String("test-case"));