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:19 +0000
commit136f9138b69f69c7cfb6ee2fedaa793c4cec3979 (patch)
tree7530c980701198d8784286bd3f917954a08a5a87
parentbd5cf34d5d5259f3029727c997c5ce95cb899fd9 (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 07fbf71..6ae209e 100644
--- a/src/opcua/client/qopcuagdsclient.cpp
+++ b/src/opcua/client/qopcuagdsclient.cpp
@@ -1810,7 +1810,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();