aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-29 13:37:11 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:50:37 -0400
commit913c0bfecec19f30faf106c977e4e1b373338fd5 (patch)
tree8acf24a7bb898dd9e186e06ace5968fc228970ce /src
parent569c13dc8e3bbce6c4a78f967754e1afe301f4d8 (diff)
downloadjalv-913c0bfecec19f30faf106c977e4e1b373338fd5.tar.gz
jalv-913c0bfecec19f30faf106c977e4e1b373338fd5.tar.bz2
jalv-913c0bfecec19f30faf106c977e4e1b373338fd5.zip
Use C++14
Diffstat (limited to 'src')
-rw-r--r--src/jalv_qt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 15aa05f..f9cf3b5 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -48,12 +48,12 @@
#include <map>
#include <vector>
-#define CONTROL_WIDTH 150
-#define DIAL_STEPS 10000
+constexpr int CONTROL_WIDTH = 150;
+constexpr int DIAL_STEPS = 10000;
static QApplication* app = nullptr;
-class FlowLayout : public QLayout
+class FlowLayout final : public QLayout
{
public:
explicit FlowLayout(QWidget* parent, int margin, int hSpacing, int vSpacing);
@@ -590,7 +590,7 @@ build_control_widget(Jalv* jalv)
LilvNode* group =
lilv_port_get(plugin, port->lilv_port, jalv->nodes.pg_group);
if (group) {
- if (!lilv_node_equals(group, lastGroup)) {
+ if (!groupLayout || !lilv_node_equals(group, lastGroup)) {
// Group has changed
LilvNode* groupName =
lilv_world_get(world, group, jalv->nodes.lv2_name, nullptr);