Commit bdce4fde authored by Joerg Bornemann's avatar Joerg Bornemann

WinRt: remove superfluous static_casts

QtVersionManager::instance() returns QtVersionManager* these days.

Change-Id: I15f25140ae3ff6b85dd0d96857ed0c2968e7126a
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 3a551b7b
......@@ -58,7 +58,7 @@ WinRtDeviceFactory::WinRtDeviceFactory()
} else {
connect(DeviceManager::instance(), &DeviceManager::devicesLoaded,
this, &WinRtDeviceFactory::onPrerequisitesLoaded, Qt::QueuedConnection);
connect(static_cast<QtVersionManager *>(QtVersionManager::instance()),
connect(QtVersionManager::instance(),
&QtVersionManager::qtVersionsLoaded,
this, &WinRtDeviceFactory::onPrerequisitesLoaded, Qt::QueuedConnection);
}
......@@ -125,12 +125,10 @@ void WinRtDeviceFactory::onPrerequisitesLoaded()
m_initialized = true;
disconnect(DeviceManager::instance(), &DeviceManager::devicesLoaded,
this, &WinRtDeviceFactory::onPrerequisitesLoaded);
QtVersionManager *qtVersionManager
= static_cast<QtVersionManager *>(QtVersionManager::instance());
disconnect(qtVersionManager, &QtVersionManager::qtVersionsLoaded,
disconnect(QtVersionManager::instance(), &QtVersionManager::qtVersionsLoaded,
this, &WinRtDeviceFactory::onPrerequisitesLoaded);
autoDetect();
connect(qtVersionManager, &QtVersionManager::qtVersionsChanged,
connect(QtVersionManager::instance(), &QtVersionManager::qtVersionsChanged,
this, &WinRtDeviceFactory::autoDetect);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment