diff options
author | Martin Smith <martin.smith@theqtcompany.com> | 2016-03-22 12:04:36 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@theqtcompany.com> | 2016-03-24 11:06:47 +0000 |
commit | 440502811b7b9749d621d20d18cfd569fceeb5c0 (patch) | |
tree | e48cb34f8d5181a4a871e2457d4514375981f9a0 | |
parent | 458fa46f8c1ef2abb8123e536ed9555ecfcc2aa4 (diff) | |
download | qttools-440502811b7b9749d621d20d18cfd569fceeb5c0.tar.gz |
qdoc: Add Q_DECL_OVERRIDE to virtual function
Compilers object now when a virtual function is
not declared with override.
Change-Id: Ia097af4ffecf896ffe42e5e22b6b9a0c1545f6f2
Task-number: QTBUG-52050
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
-rw-r--r-- | src/qdoc/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/node.h b/src/qdoc/node.h index e76d940f9..870a55cdf 100644 --- a/src/qdoc/node.h +++ b/src/qdoc/node.h @@ -952,7 +952,7 @@ public: bool hasActiveAssociatedProperty() const; QStringList reconstructParameters(bool values = false) const; - virtual QString signature(bool values, bool noReturnType = false) const; + virtual QString signature(bool values, bool noReturnType = false) const Q_DECL_OVERRIDE; virtual QString element() const Q_DECL_OVERRIDE { return parent()->name(); } virtual bool isAttached() const Q_DECL_OVERRIDE { return attached_; } virtual bool isQtQuickNode() const Q_DECL_OVERRIDE { return parent()->isQtQuickNode(); } |