aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/testtypes.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:12:51 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 22:08:30 +0200
commit0d28805cc7790511b9414a900be57f3b2d8d63a8 (patch)
tree7024857bab292b347a48d77f1831bf37e5e23f28 /tests/auto/qml/qqmlecmascript/testtypes.cpp
parent2181ef9d29c71273accab710a68907c5d42771db (diff)
Mark overrides in tests to silence compiler warnings
Pick-to: 6.1 Change-Id: Ieed929dcd7b550a1dc365d34b6f20f2f0e2d057f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/testtypes.cpp')
-rw-r--r--tests/auto/qml/qqmlecmascript/testtypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.cpp b/tests/auto/qml/qqmlecmascript/testtypes.cpp
index 209433d46c..87d8ed0c1f 100644
--- a/tests/auto/qml/qqmlecmascript/testtypes.cpp
+++ b/tests/auto/qml/qqmlecmascript/testtypes.cpp
@@ -76,7 +76,7 @@ class ImplementedExtensionObject : public AbstractExtensionObject
Q_PROPERTY(int implementedProperty READ implementedProperty WRITE setImplementedProperty NOTIFY implementedPropertyChanged)
public:
ImplementedExtensionObject(QObject *parent = nullptr) : AbstractExtensionObject(parent), m_implementedProperty(883) {}
- void shouldBeImplemented() {}
+ void shouldBeImplemented() override {}
void setImplementedProperty(int implementedProperty) { m_implementedProperty = implementedProperty; emit implementedPropertyChanged(); }
int implementedProperty() const { return m_implementedProperty; }
@@ -238,7 +238,7 @@ class MyWorkerObjectThread : public QThread
public:
MyWorkerObjectThread(MyWorkerObject *o) : QThread(o), o(o) { start(); }
- virtual void run() {
+ void run() override {
emit o->done(QLatin1String("good"));
}