From 227f5e5176e2ade6298b95cc14099fe6f7670c65 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 23 Apr 2024 16:57:49 +0200 Subject: [PATCH] Replace QStringLiteral with QLatin1String --- tests/src/collectionbackend_test.cpp | 2 +- tests/src/collectionmodel_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/collectionbackend_test.cpp b/tests/src/collectionbackend_test.cpp index 09acfbad3..3cec14ac0 100644 --- a/tests/src/collectionbackend_test.cpp +++ b/tests/src/collectionbackend_test.cpp @@ -54,7 +54,7 @@ class CollectionBackendTest : public ::testing::Test { // Returns a valid song with all the required fields set Song ret; ret.set_directory_id(directory_id); - ret.set_url(QUrl::fromLocalFile(QLatin1String("foo.flac"))); + ret.set_url(QUrl::fromLocalFile(QStringLiteral("foo.flac"))); ret.set_mtime(1); ret.set_ctime(1); ret.set_filesize(1); diff --git a/tests/src/collectionmodel_test.cpp b/tests/src/collectionmodel_test.cpp index 6897fa6de..b59b045c1 100644 --- a/tests/src/collectionmodel_test.cpp +++ b/tests/src/collectionmodel_test.cpp @@ -177,7 +177,7 @@ TEST_F(CollectionModelTest, MixedCaseHeaders) { TEST_F(CollectionModelTest, UnknownArtists) { - AddSong(QStringLiteral("Title"), QStringLiteral(""), QStringLiteral("Album"), 123); + AddSong(QStringLiteral("Title"), QLatin1String(""), QStringLiteral("Album"), 123); model_->Init(false); model_->fetchMore(model_->index(0, 0)); @@ -192,7 +192,7 @@ TEST_F(CollectionModelTest, UnknownArtists) { TEST_F(CollectionModelTest, UnknownAlbums) { - AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QStringLiteral(""), 123); + AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QLatin1String(""), 123); AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QStringLiteral("Album"), 123); model_->Init(false); model_->fetchMore(model_->index(0, 0));