[Libreoffice-commits] core.git: include/vcl vcl/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Mon May 25 00:49:42 PDT 2015


 include/vcl/slider.hxx        |    4 ++--
 vcl/source/control/slider.cxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit acf5049188e1be0ededc70f9bbedaa0032610680
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Mon May 25 16:48:38 2015 +0900

    use VclPtr for linked numeric field in slider
    
    Change-Id: If46d0409e9aceed9c35cea818271699abdf407e1

diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 9a96f3a..203554f 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -53,7 +53,7 @@ private:
     bool            mbCalcSize;
     bool            mbFullDrag;
 
-    NumericField*   mpLinkedField;
+    VclPtr<NumericField> mpLinkedField;
 
     Link<>          maSlideHdl;
     Link<>          maEndSlideHdl;
@@ -116,7 +116,7 @@ public:
 
     Size            CalcWindowSizePixel();
 
-    void            SetLinkedField(NumericField* pField);
+    void            SetLinkedField(VclPtr<NumericField> pField);
 
     void            SetSlideHdl( const Link<>& rLink ) { maSlideHdl = rLink; }
     const Link<>&   GetSlideHdl() const { return maSlideHdl;    }
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 4f0c7e1..6fe7110 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -870,7 +870,7 @@ void Slider::Resize()
     Invalidate();
 }
 
-void Slider::SetLinkedField(NumericField* pField)
+void Slider::SetLinkedField(VclPtr<NumericField> pField)
 {
     ImplSetFieldLink(Link<>());
     mpLinkedField = pField;


More information about the Libreoffice-commits mailing list