diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 1e2b6e132..196554654 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -599,7 +599,7 @@ void QMLManager::handleSslErrors(const QList<QSslError> &errors) { auto *reply = qobject_cast<QNetworkReply *>(sender()); setStartPageText(RED_FONT + tr("Cannot open cloud storage: Error creating https connection") + END_FONT); - Q_FOREACH (QSslError e, errors) { + for (QSslError e: errors) { appendTextToLog(e.errorString()); } reply->abort(); @@ -1761,8 +1761,8 @@ void QMLManager::setStatusbarColor(QColor) void QMLManager::retrieveBluetoothName() { QString name = DC_devName(); - QList<BTDiscovery::btVendorProduct> btDCs = BTDiscovery::instance()->getBtDcs(); - foreach (BTDiscovery::btVendorProduct btDC, btDCs) { + const QList<BTDiscovery::btVendorProduct> btDCs = BTDiscovery::instance()->getBtDcs(); + for (BTDiscovery::btVendorProduct btDC: btDCs) { qDebug() << "compare" <<name << btDC.btpdi.address; if (name.contains(btDC.btpdi.address)) DC_setDevBluetoothName(btDC.btpdi.name); |