diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2016-11-23 02:02:53 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2016-11-25 22:36:21 +0000 |
commit | 011aeb131ed904d948b69d6444ff58cdbfd4990c (patch) | |
tree | ae7004ad54843af21f44414574e5af91dde3b908 /examples/widgets/animation/stickman/lifecycle.cpp | |
parent | f91bbd243890511c99a084a478e7abe96d334860 (diff) |
Examples: Remove a redundant virtual specifier for overriders
It's a good practice to use override without virtual:
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rh-override
Change-Id: I5c2d73600e6c706424589c0487133c03a4ef3629
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/animation/stickman/lifecycle.cpp')
-rw-r--r-- | examples/widgets/animation/stickman/lifecycle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/animation/stickman/lifecycle.cpp b/examples/widgets/animation/stickman/lifecycle.cpp index 0ece4f3932..253af22b2d 100644 --- a/examples/widgets/animation/stickman/lifecycle.cpp +++ b/examples/widgets/animation/stickman/lifecycle.cpp @@ -70,7 +70,7 @@ public: setTargetState(target); } - virtual bool eventTest(QEvent *e) override + bool eventTest(QEvent *e) override { if (QSignalTransition::eventTest(e)) { QVariant key = static_cast<QStateMachine::SignalEvent*>(e)->arguments().at(0); @@ -95,7 +95,7 @@ public: startTimer(1000); } - virtual bool eventTest(QEvent *e) override + bool eventTest(QEvent *e) override { return QEventTransition::eventTest(e) && ((qrand() % 50) == 0); } |