diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-12-16 19:32:21 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-12-17 17:11:03 (GMT) |
commit | 8789d4bd9eaba3a90fb3a94edb71ad0c1e01dc66 (patch) | |
tree | 4e7a9d94273ec8b09f1e8af00ff7d747f0f77fcf /src/corelib/xml/qxmlstream.h | |
parent | 468328468904d116a5ff70fd4c71c34e453e8593 (diff) | |
download | Qt-8789d4bd9eaba3a90fb3a94edb71ad0c1e01dc66.zip Qt-8789d4bd9eaba3a90fb3a94edb71ad0c1e01dc66.tar.gz Qt-8789d4bd9eaba3a90fb3a94edb71ad0c1e01dc66.tar.bz2 |
add error handling to QXmlStreamWriter
introduce QXmlStreamWriter::hasError(). set the error flag when any
write error occurs. ignore subsequent writes after the first error.
Reviewed-by: denis
Diffstat (limited to 'src/corelib/xml/qxmlstream.h')
-rw-r--r-- | src/corelib/xml/qxmlstream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/xml/qxmlstream.h b/src/corelib/xml/qxmlstream.h index d7143bd..244d3d4 100644 --- a/src/corelib/xml/qxmlstream.h +++ b/src/corelib/xml/qxmlstream.h @@ -474,6 +474,8 @@ public: void writeCurrentToken(const QXmlStreamReader &reader); #endif + bool hasError() const; + private: Q_DISABLE_COPY(QXmlStreamWriter) Q_DECLARE_PRIVATE(QXmlStreamWriter) |