summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-07-07 17:26:29 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-07-12 13:24:57 +0200
commit5e8cc498a13778347628792991e743d83988ee8a (patch)
tree83ac9f4732a72cdf35b7fc9026791e1ca210023f
parent13ca1727f49924793093ca751320608c70cb16dd (diff)
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 <edward.welbourne@qt.io>
-rw-r--r--src/xml/dom/qdom.cpp4
-rw-r--r--tests/auto/xml/dom/qdom/tst_qdom.cpp2
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().