mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-02 23:35:28 +08:00
6.5.3 clean
This commit is contained in:
@ -15,7 +15,7 @@ int main(int argc, char *argv[])
|
||||
QStringList args = a.arguments();
|
||||
args.takeFirst(); // skip application name
|
||||
|
||||
foreach (const QString &path, args) {
|
||||
for (const QString &path : std::as_const(args)) {
|
||||
QStorageInfo info(path);
|
||||
if (!info.isValid()) {
|
||||
// no error string...
|
||||
|
@ -13,7 +13,7 @@ void printVolumes(const QList<QStorageInfo> &volumes, int (*printer)(const char
|
||||
// /dev/disk1s2 (hfs) RW 488050672 419909696 4096 Macintosh HD2 /Volumes/Macintosh HD2
|
||||
|
||||
printer("Filesystem (Type) Size Available BSize Label Mounted on\n");
|
||||
foreach (const QStorageInfo &info, volumes) {
|
||||
for (const QStorageInfo &info : volumes) {
|
||||
QByteArray fsAndType = info.device();
|
||||
if (info.fileSystemType() != fsAndType)
|
||||
fsAndType += " (" + info.fileSystemType() + ')';
|
||||
|
Reference in New Issue
Block a user