diff options
Diffstat (limited to 'src/activeqt/control/qaxaggregated.h')
-rw-r--r-- | src/activeqt/control/qaxaggregated.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/activeqt/control/qaxaggregated.h b/src/activeqt/control/qaxaggregated.h index 21add50..61d1f7f 100644 --- a/src/activeqt/control/qaxaggregated.h +++ b/src/activeqt/control/qaxaggregated.h @@ -65,12 +65,13 @@ class QAxAggregated { friend class QAxServerBase; friend class QAxClientSite; + Q_DISABLE_COPY(QAxAggregated) public: virtual long queryInterface(const QUuid &iid, void **iface) = 0; protected: - virtual ~QAxAggregated() - {} + QAxAggregated() = default; + virtual ~QAxAggregated() = default; inline IUnknown *controllingUnknown() const { return controlling_unknown; } @@ -78,8 +79,8 @@ protected: inline QObject *object() const { return the_object; } private: - IUnknown *controlling_unknown; - QObject *the_object; + IUnknown *controlling_unknown = nullptr; + QObject *the_object = nullptr; }; #define QAXAGG_IUNKNOWN \ |