forked from qt-creator/qt-creator
ios: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: If29d2960692c42456967025d60e6d6d7ddd09928 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -532,7 +532,7 @@ IosDeviceManager::IosDeviceManager(QObject *parent) :
|
||||
|
||||
void IosDeviceManager::updateUserModeDevices()
|
||||
{
|
||||
foreach (const QString &uid, m_userModeDeviceIds)
|
||||
for (const QString &uid : qAsConst(m_userModeDeviceIds))
|
||||
updateInfo(uid);
|
||||
}
|
||||
|
||||
@@ -544,7 +544,7 @@ IosDeviceManager *IosDeviceManager::instance()
|
||||
|
||||
void IosDeviceManager::updateAvailableDevices(const QStringList &devices)
|
||||
{
|
||||
foreach (const QString &uid, devices)
|
||||
for (const QString &uid : devices)
|
||||
deviceConnected(uid);
|
||||
|
||||
DeviceManager *devManager = DeviceManager::instance();
|
||||
|
||||
Reference in New Issue
Block a user