diff options
| author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-27 14:18:09 +0200 |
|---|---|---|
| committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-07-07 11:51:48 +0200 |
| commit | 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch) | |
| tree | 727427eb4c603e74954d4da462484ea7bf5c65bb /src/widgets/dialogs/qfilesystemmodel.cpp | |
| parent | d9cc1499954829faf9486fb72056e29f1bad58e3 (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/qfilesystemmodel.cpp')
| -rw-r--r-- | src/widgets/dialogs/qfilesystemmodel.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp index 8aefac73430..96d3f0e011a 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; } |
