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>bb10
parent
13ca1727f4
commit
5e8cc498a1
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Reference in New Issue