CollectionFilter: Add std::as_const

This commit is contained in:
Jonas Kvinge 2024-07-09 18:06:46 +02:00
parent 2e53656f44
commit 6417f89596
1 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@
#include "config.h"
#include <utility>
#include <QSortFilterProxyModel>
#include <QVariant>
#include <QString>
@ -326,7 +328,7 @@ bool CollectionFilter::FieldFloatValueMatchesData(const float value, const QStri
bool CollectionFilter::ContainsOperators(const QString &token) {
for (const QString &foperator : Operators) {
for (const QString &foperator : std::as_const(Operators)) {
if (token.contains(foperator, Qt::CaseInsensitive)) return true;
}