6.5.3 clean

This commit is contained in:
kleuter
2023-11-01 18:02:52 +01:00
parent bbe896803b
commit 7018d9e6c8
2170 changed files with 57471 additions and 43550 deletions

View File

@ -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...

View File

@ -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() + ')';