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>
m_schemaParserContext->resolver()->resolve();
m_schemaIsValid = true;
- } catch (QPatternist::Exception exception) {
+ } catch (QPatternist::Exception) {
m_schemaIsValid = false;
}
}
QPatternist::Item item;
try {
item = loader.openDocument(source, normalizedUri, d->m_context);
- } catch (QPatternist::Exception exception) {
+ } catch (QPatternist::Exception) {
return false;
}
reader.addSchema(d->m_schema, d->m_schemaDocumentUri);
try {
reader.read();
- } catch (QPatternist::Exception exception) {
+ } catch (QPatternist::Exception) {
return false;
}