Remove Q_ASSERT's from QXmlStream autotest.
Report a fatal error in all builds rather than only in debug mode builds. Change-Id: I6b3a999dd3ccf00ae66a86b43c125d7082cf0ae5 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit c183540c6c244f327ebd834167799072dcc3b72d)
This commit is contained in:
parent
b1b8d03054
commit
6fe7053d53
@ -221,8 +221,7 @@ static QString documentElement(const QByteArray &document)
|
||||
reader.readNext();
|
||||
}
|
||||
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO,
|
||||
qPrintable(QString::fromLatin1("The input %1 didn't contain an element.").arg(QString::fromUtf8(document.constData()))));
|
||||
qFatal("The input %s didn't contain an element", document.constData());
|
||||
return QString();
|
||||
}
|
||||
|
||||
@ -461,7 +460,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "The input catalog is invalid.");
|
||||
qFatal("The input catalog is invalid.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user