tubes/source/contacts.cxx | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-)
New commits: commit 18565a34d6e2768d70462f124c6d6972448efe22 Author: David Tardon <[email protected]> Date: Wed Dec 23 10:35:00 2015 +0100 convert tubes to VclPtr Change-Id: I54fb058ad1ad89183acfd4d2661c10ccffc408d6 diff --git a/tubes/source/contacts.cxx b/tubes/source/contacts.cxx index 6f8ae2c..d7ec246 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 ) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
