diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2017-11-28 11:43:39 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2019-09-02 16:20:16 +0300 |
commit | ff5d1f797f0131d395f8d092cd69dfebf9f7dc15 (patch) | |
tree | d1ff157dfd920a6a6cdaf34ce84695ec22ede8c3 /src/xmlpatterns/expr/qcastas_p.h | |
parent | 577b36c4eb38254f735ee4a3892f4cd2497711c7 (diff) |
expr: Add missing override and remove redundant virtual
Change-Id: If9f4b61a6eb739966b3941b1f97ba5dd6252053b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/xmlpatterns/expr/qcastas_p.h')
-rw-r--r-- | src/xmlpatterns/expr/qcastas_p.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xmlpatterns/expr/qcastas_p.h b/src/xmlpatterns/expr/qcastas_p.h index 3aeeef25..66fcf43f 100644 --- a/src/xmlpatterns/expr/qcastas_p.h +++ b/src/xmlpatterns/expr/qcastas_p.h @@ -91,9 +91,9 @@ namespace QPatternist CastAs(const Expression::Ptr &source, const SequenceType::Ptr &targetType); - virtual Item evaluateSingleton(const DynamicContext::Ptr &) const; + Item evaluateSingleton(const DynamicContext::Ptr &) const override; - virtual SequenceType::List expectedOperandTypes() const; + SequenceType::List expectedOperandTypes() const override; /** * @returns a SequenceType where the ItemType is this CastAs's @@ -101,21 +101,21 @@ namespace QPatternist * source operand to reflect whether this CastAs always will evaluate to * exactly-one or zero-or-one values. */ - virtual SequenceType::Ptr staticType() const; + SequenceType::Ptr staticType() const override; /** * Overridden in order to check that casting to an abstract type * is not attempted. */ - virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, - const SequenceType::Ptr &reqType); + Expression::Ptr typeCheck(const StaticContext::Ptr &context, + const SequenceType::Ptr &reqType) override; /** * If the target type is the same as the source type, it is rewritten * to the operand. */ - virtual Expression::Ptr compress(const StaticContext::Ptr &context); - virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const; + Expression::Ptr compress(const StaticContext::Ptr &context) override; + ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const override; inline ItemType::Ptr targetType() const { |