diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-02 12:30:41 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-03 06:50:37 +0100 |
commit | 553d4ec464eb09e446898a9a13ffe0a2f61f8ac8 (patch) | |
tree | d4a44ef80f2f2422cbe20842208314fcf957f676 /src/gui | |
parent | d9a651707646722915c5f20b64804252dd041a16 (diff) |
QString: plaster more and more [[nodiscard]]
The situation was quite inconsistent. Use the attribute more.
Change-Id: If21817b4c2ea1148ad4ad80e7a50fab721a58b65
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qplatformdialoghelper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformdialoghelper.cpp b/src/gui/kernel/qplatformdialoghelper.cpp index 79fac81eed..82b60b7749 100644 --- a/src/gui/kernel/qplatformdialoghelper.cpp +++ b/src/gui/kernel/qplatformdialoghelper.cpp @@ -774,8 +774,7 @@ QStringList QPlatformFileDialogHelper::cleanFilterList(const QString &filter) QRegularExpression regexp(QString::fromLatin1(filterRegExp)); Q_ASSERT(regexp.isValid()); QString f = filter; - QRegularExpressionMatch match; - filter.indexOf(regexp, 0, &match); + QRegularExpressionMatch match = regexp.match(filter); if (match.hasMatch()) f = match.captured(2); return f.split(QLatin1Char(' '), Qt::SkipEmptyParts); |