Use anonymous namespace for constants
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
|
||||
using std::make_shared;
|
||||
|
||||
namespace {
|
||||
constexpr int kMaxRedirects = 3;
|
||||
}
|
||||
|
||||
AlbumCoverLoader::AlbumCoverLoader(QObject *parent)
|
||||
: QObject(parent),
|
||||
network_(new NetworkAccessManager(this)),
|
||||
|
||||
@@ -123,7 +123,6 @@ class AlbumCoverLoader : public QObject {
|
||||
void LoadRemoteImageFinished(QNetworkReply *reply, AlbumCoverLoader::TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url);
|
||||
|
||||
private:
|
||||
static const int kMaxRedirects = 3;
|
||||
SharedPtr<NetworkAccessManager> network_;
|
||||
bool stop_requested_;
|
||||
QMutex mutex_load_image_async_;
|
||||
|
||||
Reference in New Issue
Block a user