Replace QLatin1String with operator _L1

This commit is contained in:
Jonas Kvinge
2024-09-07 04:24:14 +02:00
parent e3e6a22172
commit 4270b12cd1
185 changed files with 2429 additions and 2139 deletions

View File

@@ -440,11 +440,11 @@ QStringList StreamingSearchView::TokenizeQuery(const QString &query) {
QStringList tokens = query.split(regex_whitespaces);
for (QStringList::iterator it = tokens.begin(); it != tokens.end(); ++it) {
(*it).remove(QLatin1Char('('));
(*it).remove(QLatin1Char(')'));
(*it).remove(QLatin1Char('"'));
(*it).remove(u'(');
(*it).remove(u')');
(*it).remove(u'"');
const qint64 colon = (*it).indexOf(QLatin1Char(':'));
const qint64 colon = (*it).indexOf(u':');
if (colon != -1) {
(*it).remove(0, colon + 1);
}