Use QStringLiteral

This commit is contained in:
Jonas Kvinge
2024-04-09 23:20:26 +02:00
parent 3cfffa5fbb
commit 58944993b8
233 changed files with 3885 additions and 3885 deletions

View File

@@ -152,16 +152,16 @@ class MusicBrainzClient : public QObject {
}
void SetStatusFromString(const QString &s) {
if (s.compare("Official", Qt::CaseInsensitive) == 0) {
if (s.compare(QLatin1String("Official"), Qt::CaseInsensitive) == 0) {
status_ = Status::Official;
}
else if (s.compare("Promotion", Qt::CaseInsensitive) == 0) {
else if (s.compare(QLatin1String("Promotion"), Qt::CaseInsensitive) == 0) {
status_ = Status::Promotional;
}
else if (s.compare("Bootleg", Qt::CaseInsensitive) == 0) {
else if (s.compare(QLatin1String("Bootleg"), Qt::CaseInsensitive) == 0) {
status_ = Status::Bootleg;
}
else if (s.compare("Pseudo-release", Qt::CaseInsensitive) == 0) {
else if (s.compare(QLatin1String("Pseudo-release"), Qt::CaseInsensitive) == 0) {
status_ = Status::PseudoRelease;
}
else {