[Libreoffice-commits] core.git: include/vcl vcl/source
Noel Grandin
noel at peralex.com
Mon May 25 02:14:42 PDT 2015
include/vcl/slider.hxx | 3 ++-
vcl/source/control/slider.cxx | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
New commits:
commit 3fad26e5dd6b04a521a96a618473ed08c12b9f9c
Author: Noel Grandin <noel at peralex.com>
Date: Mon May 25 11:13:36 2015 +0200
loplugin:vclwidgets
Change-Id: I4292b8838b39dbf199da3cfa0f161bae1c75e9e4
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 203554f..8e609cd 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -81,7 +81,8 @@ private:
public:
Slider( vcl::Window* pParent, WinBits nStyle = WB_HORZ );
-
+ virtual ~Slider();
+ virtual void dispose() SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE;
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 6fe7110..4c5e8e6 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -82,6 +82,17 @@ Slider::Slider( vcl::Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
+Slider::~Slider()
+{
+ disposeOnce();
+}
+
+void Slider::dispose()
+{
+ mpLinkedField.clear();
+ Control::dispose();
+}
+
void Slider::ImplInitSettings()
{
vcl::Window* pParent = GetParent();
More information about the Libreoffice-commits
mailing list