summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-12-17 11:10:25 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-17 13:33:16 +0100
commit0c9f9c4528599f966e89074957bbf0593f983bd9 (patch)
treefbe8c0ac17c1d737e16a62150acae77cd4752e99
parent4be8f093a4f5f92470eeb54687de13e3aeb611b2 (diff)
downloadqtxmlpatterns-0c9f9c4528599f966e89074957bbf0593f983bd9.tar.gz
qtxmlpatterns-0c9f9c4528599f966e89074957bbf0593f983bd9.tar.bz2
qtxmlpatterns-0c9f9c4528599f966e89074957bbf0593f983bd9.zip
Fix compiler warnings: hiding overloaded virtual functions.
Change-Id: Id966e4780cfc792d2902c226e70e7d26eafd06a8 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
-rw-r--r--src/xmlpatterns/projection/qdocumentprojector.cpp12
-rw-r--r--src/xmlpatterns/projection/qdocumentprojector_p.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/xmlpatterns/projection/qdocumentprojector.cpp b/src/xmlpatterns/projection/qdocumentprojector.cpp
index 390329b..fe76838 100644
--- a/src/xmlpatterns/projection/qdocumentprojector.cpp
+++ b/src/xmlpatterns/projection/qdocumentprojector.cpp
@@ -58,7 +58,7 @@ DocumentProjector::DocumentProjector(const ProjectedExpression::Vector &paths,
Q_ASSERT(m_receiver);
}
-void DocumentProjector::startElement(const QXmlName name)
+void DocumentProjector::startElement(const QXmlName &name)
{
Q_UNUSED(name);
@@ -165,14 +165,14 @@ void DocumentProjector::endElement()
}
}
-void DocumentProjector::attribute(const QXmlName name,
- const QString &value)
+void DocumentProjector::attribute(const QXmlName &name,
+ const QStringRef &value)
{
Q_UNUSED(name);
Q_UNUSED(value);
}
-void DocumentProjector::namespaceBinding(const QXmlName nb)
+void DocumentProjector::namespaceBinding(const QXmlName &nb)
{
Q_UNUSED(nb);
}
@@ -184,12 +184,12 @@ void DocumentProjector::comment(const QString &value)
Q_UNUSED(value);
}
-void DocumentProjector::characters(const QString &value)
+void DocumentProjector::characters(const QStringRef &value)
{
Q_UNUSED(value);
}
-void DocumentProjector::processingInstruction(const QXmlName name,
+void DocumentProjector::processingInstruction(const QXmlName &name,
const QString &value)
{
Q_ASSERT_X(!value.contains(QLatin1String("?>")), Q_FUNC_INFO,
diff --git a/src/xmlpatterns/projection/qdocumentprojector_p.h b/src/xmlpatterns/projection/qdocumentprojector_p.h
index b15a699..2a5d411 100644
--- a/src/xmlpatterns/projection/qdocumentprojector_p.h
+++ b/src/xmlpatterns/projection/qdocumentprojector_p.h
@@ -72,19 +72,19 @@ namespace QPatternist
DocumentProjector(const ProjectedExpression::Vector &paths,
QAbstractXmlReceiver *const receiver);
- virtual void namespaceBinding(const QXmlName nb);
+ virtual void namespaceBinding(const QXmlName &nb);
- virtual void characters(const QString &value);
+ virtual void characters(const QStringRef &value);
virtual void comment(const QString &value);
- virtual void startElement(const QXmlName name);
+ virtual void startElement(const QXmlName &name);
virtual void endElement();
- virtual void attribute(const QXmlName name,
- const QString &value);
+ virtual void attribute(const QXmlName &name,
+ const QStringRef &value);
- virtual void processingInstruction(const QXmlName name,
+ virtual void processingInstruction(const QXmlName &name,
const QString &value);
virtual void item(const Item &item);