From 5c86f58bdd790874a80f050c595e5f27fe540e10 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 8 Dec 2022 12:24:06 +0100 Subject: [PATCH] Boot2qt, Qnx: Pass context object to lambda connections Change-Id: I64c5ed32035f161920a7ba08fa67de7bee6653a3 Reviewed-by: hjk --- src/plugins/boot2qt/qdbdevicedebugsupport.cpp | 4 ++-- src/plugins/qnx/qnxqtversion.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/boot2qt/qdbdevicedebugsupport.cpp b/src/plugins/boot2qt/qdbdevicedebugsupport.cpp index d3983be57dd..065dd8176e8 100644 --- a/src/plugins/boot2qt/qdbdevicedebugsupport.cpp +++ b/src/plugins/boot2qt/qdbdevicedebugsupport.cpp @@ -35,10 +35,10 @@ public: connect(&m_launcher, &QtcProcess::started, this, &RunWorker::reportStarted); connect(&m_launcher, &QtcProcess::done, this, &RunWorker::reportStopped); - connect(&m_launcher, &QtcProcess::readyReadStandardOutput, [this] { + connect(&m_launcher, &QtcProcess::readyReadStandardOutput, this, [this] { appendMessage(QString::fromUtf8(m_launcher.readAllStandardOutput()), StdOutFormat); }); - connect(&m_launcher, &QtcProcess::readyReadStandardError, [this] { + connect(&m_launcher, &QtcProcess::readyReadStandardError, this, [this] { appendMessage(QString::fromUtf8(m_launcher.readAllStandardError()), StdErrFormat); }); diff --git a/src/plugins/qnx/qnxqtversion.cpp b/src/plugins/qnx/qnxqtversion.cpp index d68c667a792..7ddad7c1bb6 100644 --- a/src/plugins/qnx/qnxqtversion.cpp +++ b/src/plugins/qnx/qnxqtversion.cpp @@ -46,7 +46,7 @@ public: sdpPathChooser->setHistoryCompleter("Qnx.Sdp.History"); sdpPathChooser->setFilePath(version->sdpPath()); - connect(sdpPathChooser, &PathChooser::rawPathChanged, [this, version, sdpPathChooser] { + connect(sdpPathChooser, &PathChooser::rawPathChanged, this, [this, version, sdpPathChooser] { version->setSdpPath(sdpPathChooser->filePath()); emit changed(); });