diff options
author | David Robillard <d@drobilla.net> | 2020-12-14 16:44:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-14 16:44:45 +0100 |
commit | c792383fca1a7d51a093c98434540bdaec92d27c (patch) | |
tree | ad7d12e754ee33bd13774fb92a7971e0223e9633 | |
parent | 48e892408869b63ed5c25d4c7f7f6aa2b22912aa (diff) | |
download | jalv-c792383fca1a7d51a093c98434540bdaec92d27c.tar.gz jalv-c792383fca1a7d51a093c98434540bdaec92d27c.tar.bz2 jalv-c792383fca1a7d51a093c98434540bdaec92d27c.zip |
Add missing member initialization
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/jalv_qt.cpp | 15 |
2 files changed, 10 insertions, 6 deletions
diff --git a/.clang-tidy b/.clang-tidy index ff801f8..1ee2334 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,7 +3,6 @@ Checks: > -*-deprecated-headers, -*-else-after-return, -*-magic-numbers, - -*-member-init, -*-named-parameter, -*-narrowing-conversions, -*-non-private-member-variables-in-classes, diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 37e3bfa..6ebef60 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -417,11 +417,16 @@ add_preset_to_menu(Jalv* jalv, } Control::Control(PortContainer portContainer, QWidget* parent) - : QGroupBox(parent) - , dial(new QDial()) - , plugin(portContainer.jalv->plugin) - , port(portContainer.port) - , label(new QLabel()) + : QGroupBox(parent) + , dial(new QDial()) + , plugin(portContainer.jalv->plugin) + , port(portContainer.port) + , label(new QLabel()) + , max(1.0f) + , min(0.0f) + , isInteger(false) + , isEnum(false) + , isLogarithmic(false) { JalvNodes* nodes = &portContainer.jalv->nodes; const LilvPort* lilvPort = port->lilv_port; |