Use anonymous namespace instead of static for constants

This commit is contained in:
Jonas Kvinge
2024-07-28 01:24:56 +02:00
parent 6c1ec51fab
commit 70fdd5b0b3
10 changed files with 25 additions and 35 deletions

View File

@@ -47,10 +47,12 @@
#include "coverproviders.h"
#include "albumcoverimageresult.h"
const int AlbumCoverFetcherSearch::kSearchTimeoutMs = 20000;
const int AlbumCoverFetcherSearch::kImageLoadTimeoutMs = 6000;
const int AlbumCoverFetcherSearch::kTargetSize = 500;
const float AlbumCoverFetcherSearch::kGoodScore = 4.0;
namespace {
constexpr int kSearchTimeoutMs = 20000;
constexpr int kImageLoadTimeoutMs = 6000;
constexpr int kTargetSize = 500;
constexpr float kGoodScore = 4.0;
} // namespace
AlbumCoverFetcherSearch::AlbumCoverFetcherSearch(const CoverSearchRequest &request, SharedPtr<NetworkAccessManager> network, QObject *parent)
: QObject(parent),