diff --git a/tests/src/collectionbackend_test.cpp b/tests/src/collectionbackend_test.cpp index 09acfbad..3cec14ac 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 6897fa6d..b59b045c 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));