diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2024-02-27 16:14:41 +0100 |
---|---|---|
committer | Jannis Voelker <jannis.voelker@basyskom.com> | 2024-02-29 12:46:18 +0100 |
commit | 5b017db4fe1fd5081471cdb22ac5f9bdedbafec8 (patch) | |
tree | 3af3bb2b79b166a25ae83257b92aea9c96e4acbf | |
parent | 8cefbe796e9d9b8f10c5f15e455cdd3e80dc8148 (diff) |
Fix constructor and destructor for GenericStructHandler and GenericStructValue
Pick-to: 6.7
Change-Id: Id231778d20a5ac034bb6ae8dcd3184c3cc283a11
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r-- | src/opcua/client/qopcuagenericstructhandler.cpp | 2 | ||||
-rw-r--r-- | src/opcua/client/qopcuagenericstructhandler.h | 3 | ||||
-rw-r--r-- | src/opcua/client/qopcuastructurefield.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/opcua/client/qopcuagenericstructhandler.cpp b/src/opcua/client/qopcuagenericstructhandler.cpp index bba8cc3..580fbeb 100644 --- a/src/opcua/client/qopcuagenericstructhandler.cpp +++ b/src/opcua/client/qopcuagenericstructhandler.cpp @@ -121,6 +121,8 @@ QOpcUaGenericStructHandler::QOpcUaGenericStructHandler(QOpcUaClient *client, QOb } +QOpcUaGenericStructHandler::~QOpcUaGenericStructHandler() = default; + /*! Starts the data type hierarchy traversal. Success or failure is reported in the \l initializedChanged signal. diff --git a/src/opcua/client/qopcuagenericstructhandler.h b/src/opcua/client/qopcuagenericstructhandler.h index 06f2c96..860f494 100644 --- a/src/opcua/client/qopcuagenericstructhandler.h +++ b/src/opcua/client/qopcuagenericstructhandler.h @@ -23,7 +23,8 @@ class Q_OPCUA_EXPORT QOpcUaGenericStructHandler : public QObject { Q_DISABLE_COPY(QOpcUaGenericStructHandler) Q_DECLARE_PRIVATE(QOpcUaGenericStructHandler) public: - QOpcUaGenericStructHandler(QOpcUaClient *client, QObject *parent = nullptr); + explicit QOpcUaGenericStructHandler(QOpcUaClient *client, QObject *parent = nullptr); + ~QOpcUaGenericStructHandler() override; bool initialize(); diff --git a/src/opcua/client/qopcuastructurefield.h b/src/opcua/client/qopcuastructurefield.h index 4df98c5..e67e97b 100644 --- a/src/opcua/client/qopcuastructurefield.h +++ b/src/opcua/client/qopcuastructurefield.h @@ -19,7 +19,7 @@ QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QOpcUaStructureFieldData, Q_OPC class QOpcUaStructureField { public: - Q_OPCUA_EXPORT QOpcUaStructureField(qint32 valueRank = -1); + Q_OPCUA_EXPORT explicit QOpcUaStructureField(qint32 valueRank = -1); Q_OPCUA_EXPORT QOpcUaStructureField(const QOpcUaStructureField &other); void swap(QOpcUaStructureField &other) noexcept { data.swap(other.data); } |