qt6-bb10/src/xml/sax
Shane Kearns d457f148cf Fix warning when using QXmlInputSource with non opened QIODevice
Calling setTextModeEnabled on a QIODevice that is not open generates
a warning as a result of QTBUG-20905. Previously, it caused incorrect
behaviour when called with true.
Now only call it if the QIODevice passed in is already opened.
If not open, then it is opened by the xml reader without text mode,
so there is no difference in behaviour.

xml autotests still pass, although this removes several QWARN messages
from the qdom autotest.

Task-number: QTBUG-22659
Change-Id: Ie3137e44fe776bff6371ebd008428110168717ec
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
2011-11-11 02:45:05 +01:00
..
qxml.cpp Fix warning when using QXmlInputSource with non opened QIODevice 2011-11-11 02:45:05 +01:00
qxml.h Remove QT3_SUPPORT from qsql, qxml 2011-07-06 12:03:30 +02:00
sax.pri Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00