diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2010-05-31 12:00:32 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-05-31 13:06:00 (GMT) |
commit | 753ad4e8282d0c7c172a33035066792a8e64e6ad (patch) | |
tree | 286e7243756a0f7ce0b1c73a3299ec3e98088e11 /doc | |
parent | 2eb9b74f9555d8588ca64886c1f8921659fdc71e (diff) | |
download | Qt-753ad4e8282d0c7c172a33035066792a8e64e6ad.zip Qt-753ad4e8282d0c7c172a33035066792a8e64e6ad.tar.gz Qt-753ad4e8282d0c7c172a33035066792a8e64e6ad.tar.bz2 |
QXmlSchema documentation correction
use a QByteArray to load the schema, not a QIODevice.
Reviewed-by: David Boddie
Diffstat (limited to 'doc')
-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"; |