Use anonymous namespace for constants
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user