diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-06 14:00:00 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-18 11:04:38 +1000 |
commit | caac04babbfdca7a3ffa604b5bb89bddd60a0d5d (patch) | |
tree | 9cbc3d49d3a619cbfd4f7c1ac0933a403640b717 /src/xmlpatterns/functions/qnumericfns.cpp | |
parent | e01dc7e1beb8e54980aa9b400ded95d6087e78c9 (diff) | |
download | qtxmlpatterns-caac04babbfdca7a3ffa604b5bb89bddd60a0d5d.tar.gz |
Remove Q_ASSERT from qabstractxmlnodemodel test
Rather than aborting in a debug build and failing silently in a release
build, report a warning and return a null model index if the first
(root) node of the model is not a document. The null return value will
cause initTestCase() to fail gracefully.
Change-Id: I15e9456929bbb3f0bd50d30333c49143b6f0aad7
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit a80ecc34565d6efc474bca2322046f4200ad51db)
Diffstat (limited to 'src/xmlpatterns/functions/qnumericfns.cpp')
0 files changed, 0 insertions, 0 deletions