diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index b54590a2f8..3c41ed48a3 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -6132,9 +6132,9 @@ bool QDomDocument::setContent(QIODevice* dev, bool namespaceProcessing, QString #if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) if (!dev->isOpen()) { qWarning("QDomDocument called with unopened QIODevice. " - "This will not be supported in future Qt versions"); + "This will not be supported in future Qt versions."); if (!dev->open(QIODevice::ReadOnly)) { - qWarning("QDomDocument::setContent: Failed to open device"); + qWarning("QDomDocument::setContent: Failed to open device."); return false; } } diff --git a/tests/auto/xml/dom/qdom/tst_qdom.cpp b/tests/auto/xml/dom/qdom/tst_qdom.cpp index 0736e158fc..de35861419 100644 --- a/tests/auto/xml/dom/qdom/tst_qdom.cpp +++ b/tests/auto/xml/dom/qdom/tst_qdom.cpp @@ -1942,7 +1942,7 @@ void tst_QDom::setContentUnopenedQIODevice() const QTest::ignoreMessage(QtWarningMsg, "QDomDocument called with unopened QIODevice. " - "This will not be supported in future Qt versions"); + "This will not be supported in future Qt versions."); // Note: the check below is expected to fail in Qt 7. // Fix the test and remove the obsolete code from setContent().