aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/derived.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/derived.h')
-rw-r--r--sources/shiboken2/tests/libsample/derived.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sources/shiboken2/tests/libsample/derived.h b/sources/shiboken2/tests/libsample/derived.h
index 5c57e4691..cc8a64d9f 100644
--- a/sources/shiboken2/tests/libsample/derived.h
+++ b/sources/shiboken2/tests/libsample/derived.h
@@ -53,13 +53,13 @@ public:
};
Derived(int id = -1);
- virtual ~Derived();
- virtual void pureVirtual();
- virtual void* pureVirtualReturningVoidPtr();
- virtual void unpureVirtual();
+ ~Derived() override;
+ void pureVirtual() override;
+ void* pureVirtualReturningVoidPtr() override;
+ void unpureVirtual() override;
- virtual PrintFormat returnAnEnum() { return Short; }
- virtual Type type() const { return TpDerived; }
+ PrintFormat returnAnEnum() override { return Short; }
+ Type type() const override { return TpDerived; }
// factory method
static Abstract* createObject();
@@ -83,10 +83,10 @@ public:
static Abstract* triggerImpossibleTypeDiscovery();
static Abstract* triggerAnotherImpossibleTypeDiscovery();
- void hideFunction(HideType*) {}
+ void hideFunction(HideType*) override {}
protected:
const char* getClassName() { return className(); }
- virtual const char* className() { return "Derived"; }
+ virtual const char* className() override { return "Derived"; }
};
#endif // DERIVED_H