summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-07-16 14:57:38 -0700
committerMarc Mutz <marc.mutz@qt.io>2022-07-21 07:01:37 +0000
commit2b62d44fb6ea709ff27d3a27241dbadc77226868 (patch)
tree672fea9a520177d87bb54b9f1ea8b33ddbb136f6
parente7b4fa1da9ad3f79fad383bddf82757c9c2056bc (diff)
Client: Fix warning about unused capture in lambda
Found by Clang 14: qopcuagdsclient.cpp:1813:71: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture] Change-Id: I36b24183fbd041179f2ffffd17026e1ed0fc7d29 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> (cherry picked from commit 15281954d8dc1057f2bf16f3b63ccb0bd356f7f3) Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/opcua/client/qopcuagdsclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opcua/client/qopcuagdsclient.cpp b/src/opcua/client/qopcuagdsclient.cpp
index cfa137a..a845509 100644
--- a/src/opcua/client/qopcuagdsclient.cpp
+++ b/src/opcua/client/qopcuagdsclient.cpp
@@ -1846,7 +1846,7 @@ void QOpcUaGdsClientPrivate::handleGetTrustListFinished(const QVariant &result,
return;
}
- QObject::connect(m_trustListNode, &QOpcUaNode::attributeUpdated, [this, q](QOpcUa::NodeAttribute attr, QVariant value) {
+ QObject::connect(m_trustListNode, &QOpcUaNode::attributeUpdated, [q](QOpcUa::NodeAttribute attr, QVariant value) {
Q_UNUSED(value);
if (attr == QOpcUa::NodeAttribute::Value)
emit q->trustListUpdated();