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

@@ -29,6 +29,8 @@
#include <QUrl>
using namespace Qt::StringLiterals;
// clazy:excludeall=returning-void-expression
class OrganizeFormatTest : public ::testing::Test {
@@ -148,7 +150,7 @@ TEST_F(OrganizeFormatTest, ReplaceNonAscii) {
format_.set_remove_non_ascii(true);
EXPECT_EQ(QStringLiteral("Royksopp"), format_.GetFilenameForSong(song_).filename);
song_.set_artist(QLatin1String(""));
song_.set_artist(""_L1);
EXPECT_EQ(QLatin1String(""), format_.GetFilenameForSong(song_).filename);
song_.set_artist(QStringLiteral("Владимир Высоцкий"));