forked from qt-creator/qt-creator
Fix some warnings about unused variables and functions
Change-Id: I5f0acd9598bc7f3a79963cc4e1b255e2b6fb2e5d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -426,7 +426,7 @@ void AndroidDeviceManager::devicesListUpdated()
|
||||
}
|
||||
|
||||
// Set devices no longer connected to disconnected state.
|
||||
for (const IDevice::ConstPtr dev : existingDevs) {
|
||||
for (const IDevice::ConstPtr &dev : existingDevs) {
|
||||
if (dev->id() != Constants::ANDROID_DEVICE_ID && !connectedDevs.contains(dev)
|
||||
&& dev->deviceState() != IDevice::DeviceDisconnected) {
|
||||
qCDebug(androidDeviceLog, "Device id \"%s\" is no longer connected.",
|
||||
@@ -443,7 +443,7 @@ AndroidDeviceManager *AndroidDeviceManager::instance()
|
||||
}
|
||||
|
||||
AndroidDeviceManager::AndroidDeviceManager(QObject *parent)
|
||||
: m_androidConfig(AndroidConfigurations::currentConfig())
|
||||
: QObject(parent), m_androidConfig(AndroidConfigurations::currentConfig())
|
||||
{
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, [this]() {
|
||||
m_devicesUpdaterTimer.stop();
|
||||
|
Reference in New Issue
Block a user