summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/wrapper/main.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 15:24:37 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 15:47:31 +0200
commitbe86ffcb985e34dcd802bac9ff17a8930b11f9c9 (patch)
tree833d30bc9904aee931f90700ca711c71af2d7826 /examples/activeqt/wrapper/main.cpp
parent0e128824e54a4994682023b7fd0fbb4c1938892c (diff)
Fix class structure and definitions
- Add override - Use "= default" for trivial constructors/destructors - Q_DISABLE_COPY_MOVE to delete move constructors and assignment Change-Id: If773ad8c092ab8000b268c4231f7f27e5f484e56 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/activeqt/wrapper/main.cpp')
-rw-r--r--examples/activeqt/wrapper/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/activeqt/wrapper/main.cpp b/examples/activeqt/wrapper/main.cpp
index 2683a41..3d8d0a1 100644
--- a/examples/activeqt/wrapper/main.cpp
+++ b/examples/activeqt/wrapper/main.cpp
@@ -64,12 +64,12 @@ public:
: QAxFactory(lib, app)
{}
- QStringList featureList() const
+ QStringList featureList() const override
{
return m_activeElements.keys();
}
- QObject *createObject(const QString &key)
+ QObject *createObject(const QString &key) override
{
auto it = m_activeElements.find(key);
if (it != m_activeElements.end())
@@ -77,7 +77,7 @@ public:
return nullptr;
}
- const QMetaObject *metaObject(const QString &key) const
+ const QMetaObject *metaObject(const QString &key) const override
{
auto it = m_activeElements.find(key);
if (it != m_activeElements.end())
@@ -85,7 +85,7 @@ public:
return nullptr;
}
- QUuid classID(const QString &key) const
+ QUuid classID(const QString &key) const override
{
auto it = m_activeElements.find(key);
if (it != m_activeElements.end())
@@ -93,7 +93,7 @@ public:
return QUuid();
}
- QUuid interfaceID(const QString &key) const
+ QUuid interfaceID(const QString &key) const override
{
auto it = m_activeElements.find(key);
if (it != m_activeElements.end())
@@ -101,7 +101,7 @@ public:
return QUuid();
}
- QUuid eventsID(const QString &key) const
+ QUuid eventsID(const QString &key) const override
{
auto it = m_activeElements.find(key);
if (it != m_activeElements.end())