Style fix

This commit is contained in:
Jurriaan van den Berg 2026-10-19 03:24:04 +02:00
parent 286982350c
commit f02f572dac
3 changed files with 15 additions and 11 deletions

View file

@ -55,7 +55,7 @@ private:
enum Attr a;
public:
CardFilter(QString const &term, Type type, Attr attr) : trm(term), t(type), a(attr)
CardFilter(const QString &term, Type type, Attr attr) : trm(term), t(type), a(attr)
{
}

View file

@ -227,7 +227,7 @@ bool FilterItem::acceptSubType(const CardInfoPtr info) const
return typeParts.size() > 1 && typeParts[1].contains(term, Qt::CaseInsensitive);
}
static bool matchesColor(QString const &term, QString const &colors) {
static bool matchesColor(const QString &term, const QString &colors) {
QString converted_term = term.trimmed().toLower();
converted_term.replace("green", "g");