From 5e8cc498a13778347628792991e743d83988ee8a Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 7 Jul 2022 17:26:29 +0200 Subject: QDomDocument: add a missing full-stop to a warning message Change-Id: I3c44afa466cbcb12fc0b44ad8bd1b52ded5f4ddd Pick-to: 6.4 6.3 6.2 Reviewed-by: Edward Welbourne --- src/xml/dom/qdom.cpp | 4 ++-- tests/auto/xml/dom/qdom/tst_qdom.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(). -- cgit v1.2.3