diff options
author | David Robillard <d@drobilla.net> | 2022-07-20 18:59:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:45 -0400 |
commit | 16b5e6b958f2e6093465a8ca04100001137a2614 (patch) | |
tree | b8d2a88eaccd520d4e5ecb94a2bf37d56afde332 /src | |
parent | d7ef474513ac3a4581b415be94a026f0a40c21df (diff) | |
download | jalv-16b5e6b958f2e6093465a8ca04100001137a2614.tar.gz jalv-16b5e6b958f2e6093465a8ca04100001137a2614.tar.bz2 jalv-16b5e6b958f2e6093465a8ca04100001137a2614.zip |
Use default member initializers
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_qt.cpp | 5 | ||||
-rw-r--r-- | src/jalv_qt.hpp | 10 |
2 files changed, 5 insertions, 10 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index f9cf3b5..5c3cd59 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -342,11 +342,6 @@ Control::Control(PortContainer portContainer, QWidget* parent) , 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; diff --git a/src/jalv_qt.hpp b/src/jalv_qt.hpp index af31b6a..d371098 100644 --- a/src/jalv_qt.hpp +++ b/src/jalv_qt.hpp @@ -69,11 +69,11 @@ private: QLabel* label; QString name; int steps; - float max; - float min; - bool isInteger; - bool isEnum; - bool isLogarithmic; + float max{1.0f}; + float min{0.0f}; + bool isInteger{}; + bool isEnum{}; + bool isLogarithmic{}; std::vector<float> scalePoints; std::map<float, const char*> scaleMap; |