From 4ee808f7f4dba73768044eaee242d617bb27d273 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jul 2022 23:27:06 -0400 Subject: Use default member initialization --- src/x11_in_qt5.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/x11_in_qt5.cpp') diff --git a/src/x11_in_qt5.cpp b/src/x11_in_qt5.cpp index fe8e473..e691200 100644 --- a/src/x11_in_qt5.cpp +++ b/src/x11_in_qt5.cpp @@ -45,10 +45,6 @@ class SuilQX11Widget : public QWidget public: SuilQX11Widget(QWidget* parent, Qt::WindowFlags wflags) : QWidget(parent, wflags) - , _instance(nullptr) - , _idle_iface(nullptr) - , _window(0) - , _ui_timer(0) {} SuilQX11Widget(const SuilQX11Widget&) = delete; @@ -129,10 +125,10 @@ protected: } private: - SuilInstance* _instance; - const LV2UI_Idle_Interface* _idle_iface; - Window _window; - int _ui_timer; + SuilInstance* _instance{}; + const LV2UI_Idle_Interface* _idle_iface{}; + Window _window{}; + int _ui_timer{}; }; SuilQX11Widget::~SuilQX11Widget() = default; -- cgit v1.2.1