diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-12-01 11:14:10 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 12:07:51 +0100 |
commit | bfac7b0e29198e537a57991b517080fe4ac5f23f (patch) | |
tree | 79cb2a0257082e771b0a6e246be46ee114a9c79b /src | |
parent | e28f376b7e22f6df3dbc9f5b7066205a222a52d2 (diff) | |
download | qtxmlpatterns-bfac7b0e29198e537a57991b517080fe4ac5f23f.tar.gz |
QtXmlPatterns: Fix warnings about unused variables.
Patternist::Exception is a bool, no need to catch by const &.
Change-Id: I73012eee1fc8540c405e771723b953841655e084
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlpatterns/api/qxmlschema_p.cpp | 2 | ||||
-rw-r--r-- | src/xmlpatterns/api/qxmlschemavalidator.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/xmlpatterns/api/qxmlschema_p.cpp b/src/xmlpatterns/api/qxmlschema_p.cpp index 5b56687..bcc33b1 100644 --- a/src/xmlpatterns/api/qxmlschema_p.cpp +++ b/src/xmlpatterns/api/qxmlschema_p.cpp @@ -144,7 +144,7 @@ void QXmlSchemaPrivate::load(QIODevice *source, const QUrl &documentUri, const Q m_schemaParserContext->resolver()->resolve(); m_schemaIsValid = true; - } catch (QPatternist::Exception exception) { + } catch (QPatternist::Exception) { m_schemaIsValid = false; } } diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp index be8f0b7..ca7bf02 100644 --- a/src/xmlpatterns/api/qxmlschemavalidator.cpp +++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp @@ -201,7 +201,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c QPatternist::Item item; try { item = loader.openDocument(source, normalizedUri, d->m_context); - } catch (QPatternist::Exception exception) { + } catch (QPatternist::Exception) { return false; } @@ -214,7 +214,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c reader.addSchema(d->m_schema, d->m_schemaDocumentUri); try { reader.read(); - } catch (QPatternist::Exception exception) { + } catch (QPatternist::Exception) { return false; } |