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

@@ -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),

View File

@@ -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_;