From e2b351bdeb568d54adaf6537974374241edd9727 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 7 Oct 2023 16:57:55 +0200 Subject: [PATCH] minor code improvement --- cppproperties/qt_widgets/widget_base.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cppproperties/qt_widgets/widget_base.hpp b/cppproperties/qt_widgets/widget_base.hpp index 3682f0c..8a1f7df 100644 --- a/cppproperties/qt_widgets/widget_base.hpp +++ b/cppproperties/qt_widgets/widget_base.hpp @@ -11,12 +11,15 @@ namespace tct::properties::qt_widgets using type = T; public: + explicit widget_base(property& property) : m_property(property) { - } + virtual + ~widget_base() = default; + protected: property& m_property; };