mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 00:55:33 +01:00
Replace QStringLiteral with QLatin1String
This commit is contained in:
parent
92e39a3e21
commit
227f5e5176
@ -54,7 +54,7 @@ class CollectionBackendTest : public ::testing::Test {
|
|||||||
// Returns a valid song with all the required fields set
|
// Returns a valid song with all the required fields set
|
||||||
Song ret;
|
Song ret;
|
||||||
ret.set_directory_id(directory_id);
|
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_mtime(1);
|
||||||
ret.set_ctime(1);
|
ret.set_ctime(1);
|
||||||
ret.set_filesize(1);
|
ret.set_filesize(1);
|
||||||
|
@ -177,7 +177,7 @@ TEST_F(CollectionModelTest, MixedCaseHeaders) {
|
|||||||
|
|
||||||
TEST_F(CollectionModelTest, UnknownArtists) {
|
TEST_F(CollectionModelTest, UnknownArtists) {
|
||||||
|
|
||||||
AddSong(QStringLiteral("Title"), QStringLiteral(""), QStringLiteral("Album"), 123);
|
AddSong(QStringLiteral("Title"), QLatin1String(""), QStringLiteral("Album"), 123);
|
||||||
model_->Init(false);
|
model_->Init(false);
|
||||||
model_->fetchMore(model_->index(0, 0));
|
model_->fetchMore(model_->index(0, 0));
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ TEST_F(CollectionModelTest, UnknownArtists) {
|
|||||||
|
|
||||||
TEST_F(CollectionModelTest, UnknownAlbums) {
|
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);
|
AddSong(QStringLiteral("Title"), QStringLiteral("Artist"), QStringLiteral("Album"), 123);
|
||||||
model_->Init(false);
|
model_->Init(false);
|
||||||
model_->fetchMore(model_->index(0, 0));
|
model_->fetchMore(model_->index(0, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user