diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-04 13:50:21 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 19:48:04 +0100 |
commit | b72c6feba87bd8707f39902a3066ba476188cb1d (patch) | |
tree | 94791632f79f14214ec7518d18a35ab822676178 /include/vcl/layout.hxx | |
parent | d6398719abecfca60db37637490e602222992dc2 (diff) |
manage VCL widgets using rtl::Reference
Change-Id: Ie95790cbaa5d459c8e849d7333098d857d31ed0a
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 24ad21732d4c..e2893de2fef5 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -544,7 +544,7 @@ public: protected: virtual Size calculateRequisition() const SAL_OVERRIDE; virtual void setAllocation(const Size &rAllocation) SAL_OVERRIDE; - void dispose() SAL_OVERRIDE { m_pDisclosureButton.clear(); VclBin::dispose(); } + void dispose() SAL_OVERRIDE { m_pDisclosureButton.disposeAndClear(); VclBin::dispose(); } private: bool m_bResizeTopLevel; DisclosureButtonPtr m_pDisclosureButton; @@ -571,7 +571,7 @@ protected: DECL_LINK(ScrollBarHdl, void *); void InitScrollBars(const Size &rRequest); virtual bool Notify(NotifyEvent& rNEvt) SAL_OVERRIDE; - void dispose() SAL_OVERRIDE { m_pVScroll.clear(); m_pHScroll.clear(); VclBin::dispose(); } + void dispose() SAL_OVERRIDE { m_pVScroll.disposeAndClear(); m_pHScroll.disposeAndClear(); VclBin::dispose(); } private: bool m_bUserManagedScrolling; ScrollBarPtr m_pVScroll; |