diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-17 13:13:35 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-19 15:07:45 +0000 |
commit | e347bb13921420a3d6ac62d620600f97ddcb8b3d (patch) | |
tree | 957931bd367063e107afe9eb67d2310a024c0ac0 /sources/shiboken2/tests/libother | |
parent | d3b003f4f63a82f4cca6f4f14cd3ebb2095b1ce8 (diff) |
shiboken tests: Introduce override
Replace virtual by override where appropriate to make the code
clearer.
Change-Id: I143daf29f1c162b2de959411a5f4acdc43a2b253
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/libother')
-rw-r--r-- | sources/shiboken2/tests/libother/otherderived.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sources/shiboken2/tests/libother/otherderived.h b/sources/shiboken2/tests/libother/otherderived.h index 792b7c408..88c711e1a 100644 --- a/sources/shiboken2/tests/libother/otherderived.h +++ b/sources/shiboken2/tests/libother/otherderived.h @@ -41,11 +41,11 @@ class LIBOTHER_API OtherDerived : public Abstract { public: OtherDerived(int id = -1); - virtual ~OtherDerived(); - virtual void pureVirtual(); - virtual void* pureVirtualReturningVoidPtr(); - virtual void unpureVirtual(); - virtual PrintFormat returnAnEnum() { return Short; } + ~OtherDerived() override; + void pureVirtual() override; + void* pureVirtualReturningVoidPtr() override; + void unpureVirtual() override; + PrintFormat returnAnEnum() override { return Short; } inline void useObjectTypeFromOtherModule(ObjectType*) {} inline Event useValueTypeFromOtherModule(const Event& e) { return e; } @@ -59,7 +59,7 @@ public: protected: inline const char* getClassName() { return className(); } - virtual const char* className() { return "OtherDerived"; } + virtual const char* className() override { return "OtherDerived"; } }; #endif // OTHERDERIVED_H |