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

@@ -39,6 +39,7 @@
#include "collection/collectionmodel.h"
#include "collection/collectionfilter.h"
using namespace Qt::StringLiterals;
using std::make_unique;
using std::make_shared;
@@ -171,7 +172,7 @@ TEST_F(CollectionModelTest, MixedCaseHeaders) {
TEST_F(CollectionModelTest, UnknownArtists) {
AddSong(QStringLiteral("Title"), QLatin1String(""), QStringLiteral("Album"), 123);
AddSong(QStringLiteral("Title"), ""_L1, QStringLiteral("Album"), 123);
ASSERT_EQ(1, model_->rowCount(QModelIndex()));
QModelIndex unknown_index = model_->index(0, 0, QModelIndex());
@@ -184,7 +185,7 @@ TEST_F(CollectionModelTest, UnknownArtists) {
TEST_F(CollectionModelTest, UnknownAlbums) {
AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QLatin1String(""), 123);
AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), ""_L1, 123);
AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QStringLiteral("Album"), 123);
QModelIndex artist_index = model_->index(1, 0, QModelIndex());