summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-10-27 17:16:23 +0200
committerQt by Nokia <qt-info@nokia.com>2011-11-30 00:56:49 +0100
commite28f376b7e22f6df3dbc9f5b7066205a222a52d2 (patch)
tree65735758182dbecc929d32f7c5fb094b11d1df0e /src
parent3857e14daf3787eb73a5c77e70b279d18764409f (diff)
downloadqtxmlpatterns-e28f376b7e22f6df3dbc9f5b7066205a222a52d2.tar.gz
Fix compile warnings about assigned/unused variables.
Change-Id: I75cbbea2777f2359fa4d86fd28057dd16bc02feb Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/api/qxmlschemavalidator.cpp1
-rw-r--r--src/xmlpatterns/schema/qxsdschemachecker_helper.cpp1
-rw-r--r--src/xmlpatterns/schema/qxsdschemaparser.cpp3
3 files changed, 1 insertions, 4 deletions
diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp
index 6a946ef..be8f0b7 100644
--- a/src/xmlpatterns/api/qxmlschemavalidator.cpp
+++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp
@@ -205,7 +205,6 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c
return false;
}
- QXmlNodeModelIndex index = item.asNode();
const QAbstractXmlNodeModel *model = item.asNode().model();
QPatternist::XsdValidatedXmlNodeModel *validatedModel = new QPatternist::XsdValidatedXmlNodeModel(model);
diff --git a/src/xmlpatterns/schema/qxsdschemachecker_helper.cpp b/src/xmlpatterns/schema/qxsdschemachecker_helper.cpp
index ee2e87c..89bd1ce 100644
--- a/src/xmlpatterns/schema/qxsdschemachecker_helper.cpp
+++ b/src/xmlpatterns/schema/qxsdschemachecker_helper.cpp
@@ -283,6 +283,7 @@ bool XsdSchemaChecker::elementSequenceAccepted(const XsdModelGroup::Ptr &sequenc
const XsdParticle::List particles(sequence->particles());
for (int i = 0; i < particles.count(); ++i) {
bool isValid = false;
+ Q_UNUSED(isValid)
if (particles.at(i)->term()->isElement()) {
const XsdElement::Ptr seqElement(particles.at(i)->term());
diff --git a/src/xmlpatterns/schema/qxsdschemaparser.cpp b/src/xmlpatterns/schema/qxsdschemaparser.cpp
index 4281a41..24a8cf3 100644
--- a/src/xmlpatterns/schema/qxsdschemaparser.cpp
+++ b/src/xmlpatterns/schema/qxsdschemaparser.cpp
@@ -1731,12 +1731,9 @@ void XsdSchemaParser::parseUnion(const XsdSimpleType::Ptr &ptr)
// The memberTypes attribute is not allowed to be empty,
// so we keep track of that
- bool hasMemberTypesAttribute = false;
bool hasMemberTypesSpecified = false;
if (hasAttribute(QString::fromLatin1("memberTypes"))) {
- hasMemberTypesAttribute = true;
-
const QStringList memberTypes = readAttribute(QString::fromLatin1("memberTypes")).split(QLatin1Char(' '), QString::SkipEmptyParts);
QList<QXmlName> typeNames;