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/libsample/photon.h | |
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/libsample/photon.h')
-rw-r--r-- | sources/shiboken2/tests/libsample/photon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/libsample/photon.h b/sources/shiboken2/tests/libsample/photon.h index d8b1be423..437ec1d9b 100644 --- a/sources/shiboken2/tests/libsample/photon.h +++ b/sources/shiboken2/tests/libsample/photon.h @@ -84,7 +84,7 @@ public: static inline TemplateBase<CLASS_TYPE>* passPointerThrough(TemplateBase<CLASS_TYPE>* obj) { return obj; } - virtual ClassType type() const { return CLASS_TYPE; } + ClassType type() const override { return CLASS_TYPE; } static const ClassType staticType = CLASS_TYPE; }; |