diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2016-12-08 22:58:46 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2019-10-03 13:14:25 +0300 |
commit | 8cb90345a6d3a5e686d471792e159c014566404d (patch) | |
tree | 50c62df01e5cbb74feb2b5d655d86dd01a6ab1e4 /src/xmlpatterns/projection | |
parent | 4f651f10c19fc140d8560aba8ca044fff650904f (diff) | |
download | qtxmlpatterns-8cb90345a6d3a5e686d471792e159c014566404d.tar.gz |
Add missing override and remove redundant virtual
Change-Id: I1a2974e012a45eb5145a092c9014d8eaab9f3ce7
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/xmlpatterns/projection')
-rw-r--r-- | src/xmlpatterns/projection/qdocumentprojector_p.h | 24 | ||||
-rw-r--r-- | src/xmlpatterns/projection/qprojectedexpression_p.h | 8 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/xmlpatterns/projection/qdocumentprojector_p.h b/src/xmlpatterns/projection/qdocumentprojector_p.h index c14d6da..95f2eba 100644 --- a/src/xmlpatterns/projection/qdocumentprojector_p.h +++ b/src/xmlpatterns/projection/qdocumentprojector_p.h @@ -68,25 +68,25 @@ namespace QPatternist DocumentProjector(const ProjectedExpression::Vector &paths, QAbstractXmlReceiver *const receiver); - virtual void namespaceBinding(const QXmlName &nb); + void namespaceBinding(const QXmlName &nb) override; - virtual void characters(const QStringRef &value); - virtual void comment(const QString &value); + void characters(const QStringRef &value) override; + void comment(const QString &value) override; - virtual void startElement(const QXmlName &name); + void startElement(const QXmlName &name) override; - virtual void endElement(); + void endElement() override; - virtual void attribute(const QXmlName &name, - const QStringRef &value); + void attribute(const QXmlName &name, + const QStringRef &value) override; - virtual void processingInstruction(const QXmlName &name, - const QString &value); + void processingInstruction(const QXmlName &name, + const QString &value) override; - virtual void item(const Item &item); + void item(const Item &item) override; - virtual void startDocument(); - virtual void endDocument(); + void startDocument() override; + void endDocument() override; ProjectedExpression::Vector m_paths; const int m_pathCount; diff --git a/src/xmlpatterns/projection/qprojectedexpression_p.h b/src/xmlpatterns/projection/qprojectedexpression_p.h index ec45285..996d23c 100644 --- a/src/xmlpatterns/projection/qprojectedexpression_p.h +++ b/src/xmlpatterns/projection/qprojectedexpression_p.h @@ -109,8 +109,8 @@ namespace QPatternist Q_UNUSED(axis); } - virtual Action actionForElement(const QXmlName name, - ProjectedExpression::Ptr &next) const + Action actionForElement(const QXmlName name, + ProjectedExpression::Ptr &next) const override { Q_UNUSED(name); Q_UNUSED(next); @@ -132,8 +132,8 @@ namespace QPatternist Q_UNUSED(right); } - virtual Action actionForElement(const QXmlName name, - ProjectedExpression::Ptr &next) const + Action actionForElement(const QXmlName name, + ProjectedExpression::Ptr &next) const override { ProjectedExpression::Ptr &candidateNext = next; const Action a = m_left->actionForElement(name, candidateNext); |