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

@@ -31,6 +31,8 @@
#include "parserbase.h"
#include "asxiniparser.h"
using namespace Qt::StringLiterals;
class CollectionBackendInterface;
AsxIniParser::AsxIniParser(SharedPtr<CollectionBackendInterface> collection_backend, QObject *parent)
@@ -48,11 +50,11 @@ SongList AsxIniParser::Load(QIODevice *device, const QString &playlist_path, con
while (!device->atEnd()) {
QString line = QString::fromUtf8(device->readLine()).trimmed();
qint64 equals = line.indexOf(QLatin1Char('='));
qint64 equals = line.indexOf(u'=');
QString key = line.left(equals).toLower();
QString value = line.mid(equals + 1);
if (key.startsWith(QLatin1String("ref"))) {
if (key.startsWith("ref"_L1)) {
Song song = LoadSong(value, 0, 0, dir, collection_lookup);
if (song.is_valid()) {
ret << song;