diff options
author | David Tardon <dtardon@redhat.com> | 2015-12-23 10:35:00 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-12-23 10:41:54 +0100 |
commit | 18565a34d6e2768d70462f124c6d6972448efe22 (patch) | |
tree | 559106e81567884f1ff81e49690c8aa1fec50b76 | |
parent | 22328a224df4619218b88205838307f70612207e (diff) |
convert tubes to VclPtr
Change-Id: I54fb058ad1ad89183acfd4d2661c10ccffc408d6
-rw-r--r-- | tubes/source/contacts.cxx | 23 |
1 files changed, 17 insertions, 6 deletions
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<PushButton> mpBtnDemo; + VclPtr<PushButton> mpBtnBuddy; + VclPtr<PushButton> mpBtnGroup; + VclPtr<PushButton> mpBtnInvite; + VclPtr<PushButton> mpBtnListen; + VclPtr<ListBox> 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 ) |