Add explicit

This commit is contained in:
Jonas Kvinge
2020-04-07 16:49:15 +02:00
parent 3efc496c41
commit 21b2193cd0
199 changed files with 337 additions and 342 deletions

View File

@@ -24,7 +24,7 @@
class MoodbarBuilder {
public:
MoodbarBuilder();
explicit MoodbarBuilder();
void Init(int bands, int rate_hz);
void AddFrame(const double* magnitudes, int size);

View File

@@ -31,7 +31,7 @@ class MoodbarController : public QObject {
Q_OBJECT
public:
MoodbarController(Application* app, QObject* parent = nullptr);
explicit MoodbarController(Application* app, QObject* parent = nullptr);
signals:
void CurrentMoodbarDataChanged(const QByteArray& data);

View File

@@ -44,7 +44,7 @@ class MoodbarItemDelegate : public QItemDelegate {
Q_OBJECT
public:
MoodbarItemDelegate(Application* app, PlaylistView* view, QObject* parent = nullptr);
explicit MoodbarItemDelegate(Application* app, PlaylistView* view, QObject* parent = nullptr);
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;

View File

@@ -36,7 +36,7 @@ class MoodbarLoader : public QObject {
Q_OBJECT
public:
MoodbarLoader(Application* app, QObject* parent = nullptr);
explicit MoodbarLoader(Application* app, QObject* parent = nullptr);
~MoodbarLoader();
enum Result {

View File

@@ -36,7 +36,7 @@ class MoodbarPipeline : public QObject {
Q_OBJECT
public:
MoodbarPipeline(const QUrl& local_filename);
explicit MoodbarPipeline(const QUrl& local_filename);
~MoodbarPipeline();
static bool IsAvailable();

View File

@@ -48,7 +48,7 @@ class MoodbarProxyStyle : public QProxyStyle {
Q_OBJECT
public:
MoodbarProxyStyle(Application* app, QSlider* slider);
explicit MoodbarProxyStyle(Application* app, QSlider* slider);
~MoodbarProxyStyle();
// QProxyStyle

View File

@@ -54,10 +54,10 @@ class MoodbarRenderer {
static QImage RenderToImage(const ColorVector& colors, const QSize& size);
private:
MoodbarRenderer();
explicit MoodbarRenderer();
struct StyleProperties {
StyleProperties(int threshold = 0, int range_start = 0, int range_delta = 0, int sat = 0, int val = 0)
explicit StyleProperties(int threshold = 0, int range_start = 0, int range_delta = 0, int sat = 0, int val = 0)
: threshold_(threshold),
range_start_(range_start),
range_delta_(range_delta),