From cfcf88e259599131b344dbbe0372d3b03f7d35ec Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Mon, 16 Mar 2020 08:47:45 +0100 Subject: Fix compilation with -no-feature-regularexpression This -no-feature has probably not been tested for a while and seems to have rotted a bit, both some unprotected uses and some warnings on unused parameters. Change-Id: Ie20a06c78d3b4c36860dab49d6615eaa8ffc9077 Reviewed-by: Lars Knoll --- src/widgets/dialogs/qfilesystemmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/dialogs/qfilesystemmodel.cpp') diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp index 4644f0f04e..6afdfa6eb9 100644 --- a/src/widgets/dialogs/qfilesystemmodel.cpp +++ b/src/widgets/dialogs/qfilesystemmodel.cpp @@ -1709,6 +1709,8 @@ void QFileSystemModel::setNameFilters(const QStringList &filters) d->nameFilters = filters; d->forceSort = true; d->delayedSort(); +#else + Q_UNUSED(filters) #endif } @@ -2158,6 +2160,8 @@ bool QFileSystemModelPrivate::passNameFilters(const QFileSystemNode *node) const } return false; } +#else + Q_UNUSED(node) #endif return true; } -- cgit v1.2.3