Use anonymous namespace for constants

This commit is contained in:
Jonas Kvinge
2024-08-07 00:52:58 +02:00
parent c69777ca39
commit 819463a865
67 changed files with 186 additions and 240 deletions

View File

@@ -86,9 +86,11 @@
using std::make_unique;
const int StreamingSearchView::kSwapModelsTimeoutMsec = 250;
const int StreamingSearchView::kDelayedSearchTimeoutMs = 200;
const int StreamingSearchView::kArtHeight = 32;
namespace {
constexpr int kSwapModelsTimeoutMsec = 250;
constexpr int kDelayedSearchTimeoutMs = 200;
constexpr int kArtHeight = 32;
} // namespace
StreamingSearchView::StreamingSearchView(QWidget *parent)
: QWidget(parent),

View File

@@ -176,11 +176,6 @@ class StreamingSearchView : public QWidget {
public slots:
void ReloadSettings();
private:
static const int kSwapModelsTimeoutMsec;
static const int kDelayedSearchTimeoutMs;
static const int kArtHeight;
private:
Application *app_;
SharedPtr<StreamingService> service_;