aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonbuildconfiguration.cpp
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2024-02-05 20:50:49 +0100
committerJarek Kobus <[email protected]>2024-02-06 08:34:44 +0000
commit8bcc78a04429f2736971054f15a4e3d4a8903183 (patch)
tree3f9e846d6a4c189ab1afde6f55700bc69cc3507b /src/plugins/python/pythonbuildconfiguration.cpp
parent97e582c3c0edbf9e646b9df667823bead5dd5e46 (diff)
Various plugins: Fix some more C++20 warnings about [=] captures
Change-Id: If20aac4320c84096a07d67cc137886638286acf8 Reviewed-by: hjk <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'src/plugins/python/pythonbuildconfiguration.cpp')
-rw-r--r--src/plugins/python/pythonbuildconfiguration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/python/pythonbuildconfiguration.cpp b/src/plugins/python/pythonbuildconfiguration.cpp
index c958692a72e..9e1192bcd80 100644
--- a/src/plugins/python/pythonbuildconfiguration.cpp
+++ b/src/plugins/python/pythonbuildconfiguration.cpp
@@ -103,8 +103,9 @@ void PySideBuildStep::checkForPySide(const FilePath &python, const QString &pySi
const PipPackage package(pySidePackageName);
QObject::disconnect(m_watcherConnection);
m_watcher.reset(new QFutureWatcher<PipPackageInfo>());
- m_watcherConnection = QObject::connect(m_watcher.get(), &QFutureWatcherBase::finished, this, [=] {
- this->handlePySidePackageInfo(m_watcher->result(), python, pySidePackageName);
+ m_watcherConnection = QObject::connect(m_watcher.get(), &QFutureWatcherBase::finished, this,
+ [this, python, pySidePackageName] {
+ handlePySidePackageInfo(m_watcher->result(), python, pySidePackageName);
});
const auto future = Pip::instance(python)->info(package);
m_watcher->setFuture(future);