Port to QStringLiteral operator

This commit is contained in:
Jonas Kvinge
2024-10-20 06:38:55 +02:00
parent 722035913e
commit ef9ef63f02
202 changed files with 2036 additions and 1889 deletions

View File

@@ -127,7 +127,7 @@ QVariant RadioModel::data(const RadioItem *item, int role) const {
}
QStringList RadioModel::mimeTypes() const {
return QStringList() << QStringLiteral("text/uri-list");
return QStringList() << u"text/uri-list"_s;
}
QMimeData *RadioModel::mimeData(const QModelIndexList &indexes) const {
@@ -330,7 +330,7 @@ QString RadioModel::SortText(QString text) {
else {
text = text.toLower();
}
static const QRegularExpression regex_words_and_whitespaces(QStringLiteral("[^\\w ]"), QRegularExpression::UseUnicodePropertiesOption);
static const QRegularExpression regex_words_and_whitespaces(u"[^\\w ]"_s, QRegularExpression::UseUnicodePropertiesOption);
text = text.remove(regex_words_and_whitespaces);
return text;