From df3e9faf1d9f5c095b555b7b91b09d885158f7fe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Dec 2020 16:21:16 +0100 Subject: Use explicit constructors --- src/jalv_qt.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 2e18446..a31070e 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -70,12 +70,12 @@ static QApplication* app = nullptr; class FlowLayout : public QLayout { public: - FlowLayout(QWidget* parent, - int margin = -1, - int hSpacing = -1, - int vSpacing = -1); + explicit FlowLayout(QWidget* parent, + int margin = -1, + int hSpacing = -1, + int vSpacing = -1); - FlowLayout(int margin = -1, int hSpacing = -1, int vSpacing = -1); + explicit FlowLayout(int margin = -1, int hSpacing = -1, int vSpacing = -1); ~FlowLayout() override; @@ -308,7 +308,7 @@ class Control : public QGroupBox Q_OBJECT public: - Control(PortContainer portContainer, QWidget* parent = nullptr); + explicit Control(PortContainer portContainer, QWidget* parent = nullptr); Q_SLOT void dialChanged(int value); -- cgit v1.2.1