diff options
author | Bill King <bill.king@nokia.com> | 2009-08-19 00:09:49 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-08-19 00:10:46 (GMT) |
commit | af98f27a847688e53ab1d34b4a9c04bdc63fe3e1 (patch) | |
tree | 6c79efab4bf157aa4468ba6c88e34b0b8e2bde6a /examples/xml/streambookmarks | |
parent | f7af55e67711270286a1addf6a28399982647a62 (diff) | |
download | Qt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.zip Qt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.tar.gz Qt-af98f27a847688e53ab1d34b4a9c04bdc63fe3e1.tar.bz2 |
Fixes compile
Diffstat (limited to 'examples/xml/streambookmarks')
-rw-r--r-- | examples/xml/streambookmarks/xbelreader.cpp | 9 | ||||
-rw-r--r-- | examples/xml/streambookmarks/xbelreader.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/xml/streambookmarks/xbelreader.cpp b/examples/xml/streambookmarks/xbelreader.cpp index 729fcf8..4472f8a 100644 --- a/examples/xml/streambookmarks/xbelreader.cpp +++ b/examples/xml/streambookmarks/xbelreader.cpp @@ -73,6 +73,15 @@ bool XbelReader::read(QIODevice *device) } //! [1] +//! [2] +void XbelReader::readUnknownElement() +{ + while (readNextStartElement()) { + readUnknownElement(); + } +} +//! [2] + //! [3] void XbelReader::readXBEL() { diff --git a/examples/xml/streambookmarks/xbelreader.h b/examples/xml/streambookmarks/xbelreader.h index 2debadc..80f0a28 100644 --- a/examples/xml/streambookmarks/xbelreader.h +++ b/examples/xml/streambookmarks/xbelreader.h @@ -62,6 +62,7 @@ public: private: //! [2] + void readUnknownElement(); void readXBEL(); void readTitle(QTreeWidgetItem *item); void readSeparator(QTreeWidgetItem *item); |