diff options
Diffstat (limited to 'include/vcl/layout.hxx')
-rw-r--r-- | include/vcl/layout.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 650ec615fe01..bec9976a7317 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -517,7 +517,7 @@ public: VclExpander(vcl::Window *pParent) : VclBin(pParent) , m_bResizeTopLevel(true) - , m_pDisclosureButton(new DisclosureButton(this)) + , m_pDisclosureButton(VclPtr<DisclosureButton>::Create(this)) { m_pDisclosureButton->SetToggleHdl(LINK(this, VclExpander, ClickHdl)); m_pDisclosureButton->Show(); @@ -630,7 +630,7 @@ protected: public: VclEventBox(vcl::Window* pParent) : VclBin(pParent) - , m_aEventBoxHelper(new EventBoxHelper(this)) + , m_aEventBoxHelper(VclPtr<EventBoxHelper>::Create(this)) { m_aEventBoxHelper->Show(); } |