From 16b5e6b958f2e6093465a8ca04100001137a2614 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Jul 2022 18:59:13 -0400 Subject: Use default member initializers --- src/jalv_qt.cpp | 5 ----- src/jalv_qt.hpp | 10 +++++----- 2 files changed, 5 insertions(+), 10 deletions(-) (limited to 'src') 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 scalePoints; std::map scaleMap; -- cgit v1.2.1