summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-03-24 15:31:47 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2021-03-25 09:24:03 +0100
commitce8f7e0ebdc90f31511c3bcb2189209823d31022 (patch)
tree817fe6ee7fee32dada71aca1271cbda0bb5f9956 /tests
parent5577cbaac59e7fc198ea2c98c1e4268779fbf0b4 (diff)
Fix some warnings
Change-Id: I9460606cefd8c4b5c01e576043c1bc8660b19de4 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/gui/animation/qanimation/dummyanimation.h4
-rw-r--r--tests/benchmarks/widgets/kernel/qwidget/tst_qwidget.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/gui/animation/qanimation/dummyanimation.h b/tests/benchmarks/gui/animation/qanimation/dummyanimation.h
index 9183506440..adc805b726 100644
--- a/tests/benchmarks/gui/animation/qanimation/dummyanimation.h
+++ b/tests/benchmarks/gui/animation/qanimation/dummyanimation.h
@@ -37,8 +37,8 @@ class DummyAnimation : public QVariantAnimation
public:
DummyAnimation(DummyObject *d);
- void updateCurrentValue(const QVariant &value);
- void updateState(State newstate, State oldstate);
+ void updateCurrentValue(const QVariant &value) override;
+ void updateState(State newstate, State oldstate) override;
private:
DummyObject *m_dummy;
diff --git a/tests/benchmarks/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/benchmarks/widgets/kernel/qwidget/tst_qwidget.cpp
index 4e000ef88e..f906f05a4b 100644
--- a/tests/benchmarks/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/benchmarks/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -81,7 +81,7 @@ public:
}
}
- void paintEvent(QPaintEvent *)
+ void paintEvent(QPaintEvent *) override
{
static int color = Qt::black;