mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-17 18:20:53 +03:00
Build using Qt6
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user