Replace QStringLiteral with QLatin1String
This commit is contained in:
@@ -1358,31 +1358,25 @@ QString CollectionModel::DividerDisplayText(const GroupBy group_by, const QStrin
|
|||||||
case GroupBy::Genre:
|
case GroupBy::Genre:
|
||||||
case GroupBy::FileType:
|
case GroupBy::FileType:
|
||||||
case GroupBy::Format:
|
case GroupBy::Format:
|
||||||
if (key == QStringLiteral("0")) return QStringLiteral("0-9");
|
if (key == QLatin1String("0")) return QStringLiteral("0-9");
|
||||||
return key.toUpper();
|
return key.toUpper();
|
||||||
|
|
||||||
case GroupBy::YearAlbum:
|
case GroupBy::YearAlbum:
|
||||||
case GroupBy::YearAlbumDisc:
|
case GroupBy::YearAlbumDisc:
|
||||||
case GroupBy::OriginalYearAlbum:
|
case GroupBy::OriginalYearAlbum:
|
||||||
case GroupBy::OriginalYearAlbumDisc:
|
case GroupBy::OriginalYearAlbumDisc:
|
||||||
if (key == QStringLiteral("0000")) return tr("Unknown");
|
if (key == QLatin1String("0000")) return tr("Unknown");
|
||||||
return key.toUpper();
|
return key.toUpper();
|
||||||
|
|
||||||
case GroupBy::Year:
|
case GroupBy::Year:
|
||||||
case GroupBy::OriginalYear:
|
case GroupBy::OriginalYear:
|
||||||
if (key == QStringLiteral("0000")) return tr("Unknown");
|
if (key == QLatin1String("0000")) return tr("Unknown");
|
||||||
return QString::number(key.toInt()); // To remove leading 0s
|
return QString::number(key.toInt()); // To remove leading 0s
|
||||||
|
|
||||||
case GroupBy::Samplerate:
|
case GroupBy::Samplerate:
|
||||||
if (key == QStringLiteral("000")) return tr("Unknown");
|
|
||||||
return QString::number(key.toInt()); // To remove leading 0s
|
|
||||||
|
|
||||||
case GroupBy::Bitdepth:
|
case GroupBy::Bitdepth:
|
||||||
if (key == QStringLiteral("000")) return tr("Unknown");
|
|
||||||
return QString::number(key.toInt()); // To remove leading 0s
|
|
||||||
|
|
||||||
case GroupBy::Bitrate:
|
case GroupBy::Bitrate:
|
||||||
if (key == QStringLiteral("000")) return tr("Unknown");
|
if (key == QLatin1String("000")) return tr("Unknown");
|
||||||
return QString::number(key.toInt()); // To remove leading 0s
|
return QString::number(key.toInt()); // To remove leading 0s
|
||||||
|
|
||||||
case GroupBy::None:
|
case GroupBy::None:
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ bool Database::IntegrityCheck(const QSqlDatabase &db) {
|
|||||||
QString message = q.value(0).toString();
|
QString message = q.value(0).toString();
|
||||||
|
|
||||||
// If no errors are found, a single row with the value "ok" is returned
|
// If no errors are found, a single row with the value "ok" is returned
|
||||||
if (message == QStringLiteral("ok")) {
|
if (message == QLatin1String("ok")) {
|
||||||
ok = true;
|
ok = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
|
|||||||
if (!line_additional.isEmpty()) {
|
if (!line_additional.isEmpty()) {
|
||||||
|
|
||||||
// If there's none "01" index, we'll just take the first one also, we'll take the "01" index even if it's the last one
|
// If there's none "01" index, we'll just take the first one also, we'll take the "01" index even if it's the last one
|
||||||
if (line_value == QStringLiteral("01") || index.isEmpty()) {
|
if (line_value == QLatin1String("01") || index.isEmpty()) {
|
||||||
|
|
||||||
index = line_additional;
|
index = line_additional;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user