Use anonymous namespace for constants
This commit is contained in:
@@ -41,7 +41,9 @@
|
||||
|
||||
using std::make_unique;
|
||||
|
||||
const int MoodbarPipeline::kBands = 128;
|
||||
namespace {
|
||||
constexpr int kBands = 128;
|
||||
}
|
||||
|
||||
MoodbarPipeline::MoodbarPipeline(const QUrl &url, QObject *parent)
|
||||
: QObject(parent),
|
||||
|
||||
@@ -63,8 +63,6 @@ class MoodbarPipeline : public QObject {
|
||||
static GstBusSyncReply BusCallbackSync(GstBus*, GstMessage *msg, gpointer data);
|
||||
|
||||
private:
|
||||
static const int kBands;
|
||||
|
||||
QUrl url_;
|
||||
GstElement *pipeline_;
|
||||
GstElement *convert_element_;
|
||||
|
||||
Reference in New Issue
Block a user