Use Qt::Literals::StringLiterals

This commit is contained in:
Jonas Kvinge
2024-10-18 20:17:23 +02:00
parent 6931538ebf
commit 0e330b81db
156 changed files with 160 additions and 172 deletions

View File

@@ -78,7 +78,7 @@
#include "coverfromurldialog.h"
#include "currentalbumcoverloader.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
const char *AlbumCoverChoiceController::kLoadImageFileFilter = QT_TR_NOOP("Images (*.png *.jpg *.jpeg *.bmp *.gif *.xpm *.pbm *.pgm *.ppm *.xbm)");
const char *AlbumCoverChoiceController::kSaveImageFileFilter = QT_TR_NOOP("Images (*.png *.jpg *.jpeg *.bmp *.xpm *.pbm *.ppm *.xbm)");

View File

@@ -35,7 +35,7 @@
#include "core/settings.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
const char *AlbumCoverExport::kSettingsGroup = "AlbumCoverExport";

View File

@@ -48,7 +48,7 @@
#include "coverproviders.h"
#include "albumcoverimageresult.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr int kSearchTimeoutMs = 20000;

View File

@@ -24,7 +24,7 @@
#include "core/settings.h"
#include "settings/coverssettingspage.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
AlbumCoverLoaderOptions::AlbumCoverLoaderOptions(const Options _options, const QSize _desired_scaled_size, const qreal _device_pixel_ratio, const Types &_types)
: options(_options),

View File

@@ -96,7 +96,7 @@
#include "ui_albumcovermanager.h"
using namespace std::literals::chrono_literals;
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kSettingsGroup[] = "CoverManager";

View File

@@ -34,7 +34,7 @@
#include "albumcoverexport.h"
#include "coverexportrunnable.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
CoverExportRunnable::CoverExportRunnable(const AlbumCoverExport::DialogResult &dialog_result, const AlbumCoverLoaderOptions::Types &cover_types, const Song &song, QObject *parent)
: QObject(parent),

View File

@@ -39,7 +39,7 @@
#include "coverfromurldialog.h"
#include "ui_coverfromurldialog.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
CoverFromURLDialog::CoverFromURLDialog(SharedPtr<NetworkAccessManager> network, QWidget *parent)
: QDialog(parent),

View File

@@ -48,7 +48,7 @@
#include "jsoncoverprovider.h"
#include "deezercoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kApiUrl[] = "https://api.deezer.com";

View File

@@ -50,7 +50,7 @@
#include "jsoncoverprovider.h"
#include "discogscoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
using std::make_shared;
const char *DiscogsCoverProvider::kUrlSearch = "https://api.discogs.com/database/search";

View File

@@ -47,7 +47,7 @@
#include "albumcoverfetcher.h"
#include "lastfmcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kUrl[] = "https://ws.audioscrobbler.com/2.0/";

View File

@@ -44,7 +44,7 @@
#include "jsoncoverprovider.h"
#include "musicbrainzcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kReleaseSearchUrl[] = "https://musicbrainz.org/ws/2/release/";

View File

@@ -40,7 +40,7 @@
#include "jsoncoverprovider.h"
#include "musixmatchcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
MusixmatchCoverProvider::MusixmatchCoverProvider(Application *app, SharedPtr<NetworkAccessManager> network, QObject *parent)
: JsonCoverProvider(QStringLiteral("Musixmatch"), true, false, 1.0, true, false, app, network, parent) {}

View File

@@ -47,7 +47,7 @@
#include "jsoncoverprovider.h"
#include "opentidalcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kSettingsGroup[] = "OpenTidal";

View File

@@ -47,7 +47,7 @@
#include "jsoncoverprovider.h"
#include "qobuzcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr int kLimit = 10;

View File

@@ -52,7 +52,7 @@
#include "jsoncoverprovider.h"
#include "spotifycoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr char kApiUrl[] = "https://api.spotify.com/v1";

View File

@@ -45,7 +45,7 @@
#include "jsoncoverprovider.h"
#include "tidalcoverprovider.h"
using namespace Qt::StringLiterals;
using namespace Qt::Literals::StringLiterals;
namespace {
constexpr int kLimit = 10;