Silence bogus whitespace "errors" from the DBus XML parser
Any amount of whitespace between elements is now reported as an error starting with 5.8. This is (a) wrong and (b) very confusing for users. Change-Id: I2530b2138f95912e5be07e94b7d7fdab49dedbb1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
b29b9041b5
commit
f55db6738b
@ -385,6 +385,11 @@ QDBusXmlParser::QDBusXmlParser(const QString& service, const QString& path,
|
||||
case QXmlStreamReader::Comment:
|
||||
// ignore comments and processing instructions
|
||||
break;
|
||||
case QXmlStreamReader::Characters:
|
||||
// ignore whitespace
|
||||
if (xml.isWhitespace())
|
||||
break;
|
||||
Q_FALLTHROUGH();
|
||||
default:
|
||||
qDBusParserError() << "unknown token" << xml.name() << xml.tokenString();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user