summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/api')
-rw-r--r--src/xmlpatterns/api/qxmlschema_p.cpp1
-rw-r--r--src/xmlpatterns/api/qxmlschemavalidator.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qxmlschema_p.cpp b/src/xmlpatterns/api/qxmlschema_p.cpp
index 8ebde03..c29a55f 100644
--- a/src/xmlpatterns/api/qxmlschema_p.cpp
+++ b/src/xmlpatterns/api/qxmlschema_p.cpp
@@ -145,6 +145,7 @@ void QXmlSchemaPrivate::load(QIODevice *source, const QUrl &documentUri, const Q
m_schemaIsValid = true;
} catch (QPatternist::Exception exception) {
+ Q_UNUSED(exception);
m_schemaIsValid = false;
}
}
diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp
index 7ba38a8..65815ae 100644
--- a/src/xmlpatterns/api/qxmlschemavalidator.cpp
+++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp
@@ -202,6 +202,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c
try {
item = loader.openDocument(source, normalizedUri, d->m_context);
} catch (QPatternist::Exception exception) {
+ Q_UNUSED(exception);
return false;
}
@@ -216,6 +217,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c
try {
reader.read();
} catch (QPatternist::Exception exception) {
+ Q_UNUSED(exception);
return false;
}