From 3f3059c98bf21cfd0759a91b701fd1e4dee77a09 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 25 Aug 2024 01:08:25 +0200 Subject: [PATCH] Replace QLatin1String with QStringLiteral --- src/core/mainwindow.cpp | 2 +- src/core/song.cpp | 2 +- src/core/stylesheetloader.cpp | 40 +++++++++---------- .../albumcoverchoicecontroller.cpp | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index 1bb830fe4..c91e4fd6e 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -400,7 +400,7 @@ MainWindow::MainWindow(Application *app, SharedPtr tray_icon, OS ui_->tabs->AddTab(tidal_view_, QStringLiteral("tidal"), IconLoader::Load(QStringLiteral("tidal"), true, 0, 32), tr("Tidal")); #endif #ifdef HAVE_SPOTIFY - ui_->tabs->AddTab(spotify_view_, QLatin1String("spotify"), IconLoader::Load(QStringLiteral("spotify"), true, 0, 32), tr("Spotify")); + ui_->tabs->AddTab(spotify_view_, QStringLiteral("spotify"), IconLoader::Load(QStringLiteral("spotify"), true, 0, 32), tr("Spotify")); #endif #ifdef HAVE_QOBUZ ui_->tabs->AddTab(qobuz_view_, QStringLiteral("qobuz"), IconLoader::Load(QStringLiteral("qobuz"), true, 0, 32), tr("Qobuz")); diff --git a/src/core/song.cpp b/src/core/song.cpp index 90ef623f2..0b4c59387 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -1935,7 +1935,7 @@ void Song::MergeUserSetData(const Song &other, const bool merge_playcount, const } QString Song::AlbumKey() const { - return QStringLiteral("%1|%2|%3").arg(is_compilation() ? QLatin1String("_compilation") : effective_albumartist(), has_cue() ? cue_path() : QLatin1String(""), effective_album()); + return QStringLiteral("%1|%2|%3").arg(is_compilation() ? QStringLiteral("_compilation") : effective_albumartist(), has_cue() ? cue_path() : QLatin1String(""), effective_album()); } #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) diff --git a/src/core/stylesheetloader.cpp b/src/core/stylesheetloader.cpp index f5c6f182d..be354435f 100644 --- a/src/core/stylesheetloader.cpp +++ b/src/core/stylesheetloader.cpp @@ -93,26 +93,26 @@ void StyleSheetLoader::UpdateStyleSheet(QWidget *widget, SharedPtr