summaryrefslogtreecommitdiff
path: root/include/vcl/spinfld.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-07 10:42:07 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 19:58:50 +0100
commit3ad9d2550f922ae7f555ca0753c57907d4d78ab6 (patch)
treee4c49fb42eca8566d9ab56600f4d372f4c2eb748 /include/vcl/spinfld.hxx
parent09b4246c6aa5e75c89df2961816b0124fea7fd78 (diff)
vcl: make VclPtr<T>(T*) constructor explicit
to make it obvious in the code when we are translating between the reference-counted type and raw pointers, since that is the danger-point Change-Id: I32822432325fa34969e78cccf937e2ccbe1bfb70
Diffstat (limited to 'include/vcl/spinfld.hxx')
-rw-r--r--include/vcl/spinfld.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx
index fe5431be04b6..493dcf897873 100644
--- a/include/vcl/spinfld.hxx
+++ b/include/vcl/spinfld.hxx
@@ -32,7 +32,7 @@
class VCL_DLLPUBLIC SpinField : public Edit
{
protected:
- Edit* mpEdit;
+ VclPtr<Edit> mpEdit;
AutoTimer maRepeatTimer;
Rectangle maUpperRect;
Rectangle maLowerRect;
@@ -69,6 +69,8 @@ protected:
virtual void FillLayoutData() const SAL_OVERRIDE;
Rectangle * ImplFindPartRect( const Point& rPt );
+ virtual void dispose() SAL_OVERRIDE;
+
public:
explicit SpinField( vcl::Window* pParent, WinBits nWinStyle = 0 );
explicit SpinField( vcl::Window* pParent, const ResId& );