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/iterators/qemptyiterator_p.h | |
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/iterators/qemptyiterator_p.h')
-rw-r--r-- | src/xmlpatterns/iterators/qemptyiterator_p.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xmlpatterns/iterators/qemptyiterator_p.h b/src/xmlpatterns/iterators/qemptyiterator_p.h index ad10bbc..2374382 100644 --- a/src/xmlpatterns/iterators/qemptyiterator_p.h +++ b/src/xmlpatterns/iterators/qemptyiterator_p.h @@ -76,7 +76,7 @@ namespace QPatternist /** * @returns always a default constructed value, T(). */ - virtual T next() + T next() override { return T(); } @@ -84,7 +84,7 @@ namespace QPatternist /** * @returns always a default constructed value, T(). */ - virtual T current() const + T current() const override { return T(); } @@ -92,7 +92,7 @@ namespace QPatternist /** * @returns always 0. */ - virtual xsInteger position() const + xsInteger position() const override { return 0; } @@ -100,7 +100,7 @@ namespace QPatternist /** * @returns always @c this, the reverse of <tt>()</tt> is <tt>()</tt>. */ - virtual typename QAbstractXmlForwardIterator<T>::Ptr toReversed() + typename QAbstractXmlForwardIterator<T>::Ptr toReversed() override { return typename QAbstractXmlForwardIterator<T>::Ptr(const_cast<EmptyIterator<T> *>(this)); } @@ -108,7 +108,7 @@ namespace QPatternist /** * @returns always 0 */ - virtual xsInteger count() + xsInteger count() override { return 0; } @@ -116,7 +116,7 @@ namespace QPatternist /** * @returns @c this */ - virtual typename QAbstractXmlForwardIterator<T>::Ptr copy() const + typename QAbstractXmlForwardIterator<T>::Ptr copy() const override { return typename QAbstractXmlForwardIterator<T>::Ptr(const_cast<EmptyIterator *>(this)); } |