diff options
author | Jarek Kobus <[email protected]> | 2022-12-07 14:38:23 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2022-12-07 16:30:13 +0000 |
commit | 0d74be319af9425d6fba12a2f06cd3bc1c6ef28f (patch) | |
tree | 593d2c221aa39a879ee80e8ed3a13e4995eb325d /src/plugins/android/androiddevice.cpp | |
parent | 9afcf870a1f6f4d498621dc3fb0c5bb94e03d773 (diff) |
Android: Pass context object to lambda connections
Remove some unneeded lambda () brackets.
Change-Id: Id00e2bc736683bb844cc7ba936ac9d21aa204416
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/android/androiddevice.cpp')
-rw-r--r-- | src/plugins/android/androiddevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/android/androiddevice.cpp b/src/plugins/android/androiddevice.cpp index 0526c8e691f..e1a1db1ed7f 100644 --- a/src/plugins/android/androiddevice.cpp +++ b/src/plugins/android/androiddevice.cpp @@ -455,7 +455,7 @@ void AndroidDeviceManager::startAvd(const ProjectExplorer::IDevice::Ptr &device, const AndroidDevice *androidDev = static_cast<const AndroidDevice *>(device.data()); const QString name = androidDev->avdName(); qCDebug(androidDeviceLog, "Starting Android AVD id \"%s\".", qPrintable(name)); - runAsync([this, name, device]() { + runAsync([this, name, device] { const QString serialNumber = m_avdManager.startAvd(name); // Mark the AVD as ReadyToUse once we know it's started if (!serialNumber.isEmpty()) { @@ -480,7 +480,7 @@ void AndroidDeviceManager::eraseAvd(const IDevice::Ptr &device, QWidget *parent) return; qCDebug(androidDeviceLog) << QString("Erasing Android AVD \"%1\" from the system.").arg(name); - m_removeAvdFutureWatcher.setFuture(runAsync([this, name, device]() { + m_removeAvdFutureWatcher.setFuture(runAsync([this, name, device] { QPair<IDevice::ConstPtr, bool> pair; pair.first = device; pair.second = false; @@ -512,7 +512,7 @@ void AndroidDeviceManager::setupWifiForDevice(const IDevice::Ptr &device, QWidge return; } - QTimer::singleShot(2000, parent, [adbSelector, parent]() { + QTimer::singleShot(2000, parent, [adbSelector, parent] { // Get device IP address QStringList args = adbSelector; args.append({"shell", "ip", "route"}); |