diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-05-31 13:47:42 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-05-31 13:47:42 (GMT) |
commit | c3795b027a54a123eb3ced4190843ca616f5435c (patch) | |
tree | 928753185d54403711b915e7598df0fe93369087 /doc/src | |
parent | 3f6d48ad326fd261153cec1b9eab1da00a144066 (diff) | |
parent | 33a2c9bacd9a2f566ea50e085c7ce669f854b427 (diff) | |
download | Qt-c3795b027a54a123eb3ced4190843ca616f5435c.zip Qt-c3795b027a54a123eb3ced4190843ca616f5435c.tar.gz Qt-c3795b027a54a123eb3ced4190843ca616f5435c.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/qxmlschema/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/src/snippets/qxmlschema/main.cpp b/doc/src/snippets/qxmlschema/main.cpp index 83fb245..26a8741 100644 --- a/doc/src/snippets/qxmlschema/main.cpp +++ b/doc/src/snippets/qxmlschema/main.cpp @@ -91,11 +91,8 @@ void Schema::loadFromData() const " elementFormDefault=\"qualified\">" "</xsd:schema>" ); - QBuffer buffer(&data); - buffer.open(QIODevice::ReadOnly); - QXmlSchema schema; - schema.load(&buffer); + schema.load(data); if (schema.isValid()) qDebug() << "schema is valid"; |