From 18565a34d6e2768d70462f124c6d6972448efe22 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 23 Dec 2015 10:35:00 +0100 Subject: convert tubes to VclPtr Change-Id: I54fb058ad1ad89183acfd4d2661c10ccffc408d6 --- tubes/source/contacts.cxx | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'tubes') diff --git a/tubes/source/contacts.cxx b/tubes/source/contacts.cxx index 6f8ae2c0ec58..d7ec24640297 100644 --- a/tubes/source/contacts.cxx +++ b/tubes/source/contacts.cxx @@ -23,12 +23,12 @@ namespace { class TubeContacts : public ModelessDialog { - PushButton* mpBtnDemo; - PushButton* mpBtnBuddy; - PushButton* mpBtnGroup; - PushButton* mpBtnInvite; - PushButton* mpBtnListen; - ListBox* mpList; + VclPtr mpBtnDemo; + VclPtr mpBtnBuddy; + VclPtr mpBtnGroup; + VclPtr mpBtnInvite; + VclPtr mpBtnListen; + VclPtr mpList; Collaboration* mpCollaboration; DECL_LINK_TYPED( BtnDemoHdl, Button*, void ); @@ -124,6 +124,17 @@ public: } virtual ~TubeContacts() { + dispose(); + } + + virtual void dispose() override + { + mpBtnListen.clear(); + mpBtnGroup.clear(); + mpBtnDemo.clear(); + mpBtnBuddy.clear(); + mpBtnGroup.clear(); + mpList.clear(); } static OUString fromUTF8( const char *pStr ) -- cgit