summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/schema/qxsdschemaparser.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-08-29 13:41:42 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-29 14:15:47 +0200
commit5b4b3fb34679c2768d5c830cb8b9c88506aca75b (patch)
tree520b0eeea3e7572297d4e2c2c8d5d9baf6efa7f5 /src/xmlpatterns/schema/qxsdschemaparser.cpp
parent6d3df9df2930a15877d81abec9ac10052968d9c4 (diff)
downloadqtxmlpatterns-5b4b3fb34679c2768d5c830cb8b9c88506aca75b.tar.gz
QtXmlPatterns: Fix (!a == b) bug
The ! applies to a only, so the result of this expression is most likely not what was expected. Clang warned about this one. Change-Id: I600c1ec70fa22313eee70ecce8995afd83713de6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/xmlpatterns/schema/qxsdschemaparser.cpp')
-rw-r--r--src/xmlpatterns/schema/qxsdschemaparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/schema/qxsdschemaparser.cpp b/src/xmlpatterns/schema/qxsdschemaparser.cpp
index dbe0e39..f8327f7 100644
--- a/src/xmlpatterns/schema/qxsdschemaparser.cpp
+++ b/src/xmlpatterns/schema/qxsdschemaparser.cpp
@@ -5974,7 +5974,7 @@ QString XsdSchemaParser::readXPathAttribute(const QString &attributeName, XPathT
const QList<QXmlName> namespaceBindings = m_namespaceSupport.namespaceBindings();
for (int i = 0; i < namespaceBindings.count(); ++i) {
- if (!namespaceBindings.at(i).prefix() == StandardPrefixes::empty)
+ if (namespaceBindings.at(i).prefix() != StandardPrefixes::empty)
queryPrivate->addAdditionalNamespaceBinding(namespaceBindings.at(i));
}