mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-23 08:29:09 +00:00
Fix Clazy range-loop-detach warnings
This commit is contained in:
@@ -58,7 +58,7 @@ void AutoUpdateChecker::start()
|
||||
void AutoUpdateChecker::parseStringToVersionQuad(QString& string, QVector<int>& version)
|
||||
{
|
||||
QStringList list = string.split('.');
|
||||
for (const QString& component : list) {
|
||||
for (const QString& component : std::as_const(list)) {
|
||||
version.append(component.toInt());
|
||||
}
|
||||
}
|
||||
@@ -139,7 +139,7 @@ void AutoUpdateChecker::handleUpdateCheckRequestFinished(QNetworkReply* reply)
|
||||
return;
|
||||
}
|
||||
|
||||
for (QJsonValueRef updateEntry : array) {
|
||||
for (const auto& updateEntry : std::as_const(array)) {
|
||||
if (updateEntry.isObject()) {
|
||||
QJsonObject updateObj = updateEntry.toObject();
|
||||
if (!updateObj.contains("platform") ||
|
||||
|
||||
Reference in New Issue
Block a user