summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-06-27 14:18:09 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-07-07 11:51:48 +0200
commit6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch)
tree727427eb4c603e74954d4da462484ea7bf5c65bb /src/widgets/dialogs
parentd9cc1499954829faf9486fb72056e29f1bad58e3 (diff)
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I3f0b6717956ca8fa486bed9817b89dfa19f5e0e1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r--src/widgets/dialogs/qfiledialog.cpp4
-rw-r--r--src/widgets/dialogs/qfilesystemmodel.cpp14
2 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp
index f89d60ca74..587db6343f 100644
--- a/src/widgets/dialogs/qfiledialog.cpp
+++ b/src/widgets/dialogs/qfiledialog.cpp
@@ -1029,7 +1029,7 @@ QUrl QFileDialog::directoryUrl() const
// FIXME Qt 5.4: Use upcoming QVolumeInfo class to determine this information?
static inline bool isCaseSensitiveFileSystem(const QString &path)
{
- Q_UNUSED(path)
+ Q_UNUSED(path);
#if defined(Q_OS_WIN)
// Return case insensitive unconditionally, even if someone has a case sensitive
// file system mounted, wrongly capitalized drive letters will cause mismatches.
@@ -1185,7 +1185,7 @@ QStringList QFileDialogPrivate::typedFiles() const
files << qt_tildeExpansion(editText);
#else
files << editText;
- Q_UNUSED(q)
+ Q_UNUSED(q);
#endif
} else {
// " is used to separate files like so: "file1" "file2" "file3" ...
diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp
index 8aefac7343..96d3f0e011 100644
--- a/src/widgets/dialogs/qfilesystemmodel.cpp
+++ b/src/widgets/dialogs/qfilesystemmodel.cpp
@@ -863,7 +863,7 @@ static void displayRenameFailedMessage(const QString &newName)
QMessageBox::information(nullptr, QFileSystemModel::tr("Invalid filename"),
message, QMessageBox::Ok);
#else
- Q_UNUSED(newName)
+ Q_UNUSED(newName);
#endif // QT_CONFIG(messagebox)
}
@@ -1633,7 +1633,7 @@ void QFileSystemModel::setResolveSymlinks(bool enable)
Q_D(QFileSystemModel);
d->fileInfoGatherer.setResolveSymlinks(enable);
#else
- Q_UNUSED(enable)
+ Q_UNUSED(enable);
#endif
}
@@ -1721,7 +1721,7 @@ void QFileSystemModel::setNameFilters(const QStringList &filters)
d->forceSort = true;
d->delayedSort();
#else
- Q_UNUSED(filters)
+ Q_UNUSED(filters);
#endif
}
@@ -1824,7 +1824,7 @@ QFileSystemModelPrivate::QFileSystemNode* QFileSystemModelPrivate::addNode(QFile
#if QT_CONFIG(filesystemwatcher)
node->populate(info);
#else
- Q_UNUSED(info)
+ Q_UNUSED(info);
#endif
#if defined(Q_OS_WIN)
//The parentNode is "" so we are listing the drives
@@ -2016,8 +2016,8 @@ void QFileSystemModelPrivate::_q_fileSystemChanged(const QString &path,
delayedSort();
}
#else
- Q_UNUSED(path)
- Q_UNUSED(updates)
+ Q_UNUSED(path);
+ Q_UNUSED(updates);
#endif // filesystemwatcher
}
@@ -2165,7 +2165,7 @@ bool QFileSystemModelPrivate::passNameFilters(const QFileSystemNode *node) const
return false;
}
#else
- Q_UNUSED(node)
+ Q_UNUSED(node);
#endif
return true;
}