summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/container/qaxobject.h')
-rw-r--r--src/activeqt/container/qaxobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activeqt/container/qaxobject.h b/src/activeqt/container/qaxobject.h
index fd18c98..5c62303 100644
--- a/src/activeqt/container/qaxobject.h
+++ b/src/activeqt/container/qaxobject.h
@@ -50,8 +50,8 @@ class QAxObject : public QObject, public QAxBase
friend class QAxEventSink;
Q_OBJECT_FAKE
public:
- QObject* qObject() const { return (QObject*)this; }
- const char *className() const;
+ QObject* qObject() const Q_DECL_OVERRIDE { return static_cast<QObject *>(const_cast<QAxObject *>(this)); }
+ const char *className() const Q_DECL_OVERRIDE;
QAxObject(QObject *parent = 0);
QAxObject(const QString &c, QObject *parent = 0);