Build using Qt6

This commit is contained in:
Spiros
2024-06-11 19:03:29 +03:00
parent 183da80ce2
commit e96db9d383
2 changed files with 12 additions and 11 deletions

View File

@@ -106,7 +106,7 @@ void MainWindow::scanDevices()
devices = jsonObj["devices"].toArray();
QStringList commandList;
for (const QJsonValue &value : qAsConst(devices)) {
for (const QJsonValue &value : std::as_const(devices)) {
QJsonObject device = value.toObject();
QString deviceName = device["name"].toString();
commandList.append(QString("smartctl --all --json %1").arg(deviceName));