[Libreoffice-commits] core.git: svtools/source

Michael Meeks michael.meeks at collabora.com
Tue May 12 04:44:33 PDT 2015


 svtools/source/contnr/treelistbox.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 6e908d3c3f28c507de72579e33c31a99fb4f1ce9
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Tue May 12 12:50:13 2015 +0100

    svtools: hold strong VclPtr references for global state.
    
    Change-Id: I55c384495a0b1e0e128ac71ec3ae4afee6964fde

diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 5d7ec97..377244a 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -48,9 +48,8 @@
 using namespace css::accessibility;
 
 // Drag&Drop
-static SvTreeListBox* pDDSource = NULL;
-static SvTreeListBox* pDDTarget = NULL;
-
+static VclPtr<SvTreeListBox> pDDSource;
+static VclPtr<SvTreeListBox> pDDTarget;
 
 #define SVLBOX_ACC_RETURN 1
 #define SVLBOX_ACC_ESCAPE 2


More information about the Libreoffice-commits mailing list