summaryrefslogtreecommitdiff
path: root/include/vcl/layout.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-20 15:35:54 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-20 15:35:54 +0100
commit4fed8865be56ac431fb91e2432c6e93ce3f781c7 (patch)
tree67b0982f8910bc8bfbc92cb6245520a26f6366dc /include/vcl/layout.hxx
parentf12488405cdfd8555078d15807aafc5ffd1b037b (diff)
vcl: convert new to ::Create
Change-Id: Ifd52953086ea923fa1770892d13f32c2263aec54
Diffstat (limited to 'include/vcl/layout.hxx')
-rw-r--r--include/vcl/layout.hxx4
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();
}