QXmlStreamReader: Fix translation context of error messages
QObject::tr() should not be used.
Amends c4301be7d5
.
Task-number: QTBUG-92113
Task-number: QTBUG-95188
Pick-to: 6.6 6.5
Change-Id: I09547c3d048d6b3726e33be74b06035f0eec4f31
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
6213f6565c
commit
d164ec4abe
@ -3926,7 +3926,7 @@ void QXmlStreamReaderPrivate::checkToken()
|
|||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
raiseError(QXmlStreamReader::UnexpectedElementError,
|
raiseError(QXmlStreamReader::UnexpectedElementError,
|
||||||
QObject::tr("Unexpected token type %1 in %2.")
|
QXmlStream::tr("Unexpected token type %1 in %2.")
|
||||||
.arg(q->tokenString(), contextString(context)));
|
.arg(q->tokenString(), contextString(context)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3937,7 +3937,7 @@ void QXmlStreamReaderPrivate::checkToken()
|
|||||||
// Raise error on multiple DTD tokens
|
// Raise error on multiple DTD tokens
|
||||||
if (foundDTD) {
|
if (foundDTD) {
|
||||||
raiseError(QXmlStreamReader::UnexpectedElementError,
|
raiseError(QXmlStreamReader::UnexpectedElementError,
|
||||||
QObject::tr("Found second DTD token in %1.").arg(contextString(context)));
|
QXmlStream::tr("Found second DTD token in %1.").arg(contextString(context)));
|
||||||
} else {
|
} else {
|
||||||
foundDTD = true;
|
foundDTD = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user