summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/inc/unotxvw.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-04-24 18:10:07 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-24 18:56:50 +0200
commitf92b087ffc68c054e7f183ab5c8e3e02fb9e35e2 (patch)
tree011217c84f4ad43de49e0ee381582060d30bbbe3 /sw/source/ui/inc/unotxvw.hxx
parentinline unused ctor needed by MSVC at compile time (diff)
downloadcore-f92b087ffc68c054e7f183ab5c8e3e02fb9e35e2.tar.gz
core-f92b087ffc68c054e7f183ab5c8e3e02fb9e35e2.zip
fix double free in SwXTextView::removeSelectionChangeListener
dbaccess_complex segfaults because ptr_vector::erase actually deletes the element; also, a std::vector is more appropriate to store smart ptr. (regression from 8533a191f4434490aa44118bce0e5719477d957a)
Diffstat (limited to 'sw/source/ui/inc/unotxvw.hxx')
-rw-r--r--sw/source/ui/inc/unotxvw.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
index c764c1547ef9..89a98f788bfe 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -56,7 +56,7 @@ class SdrObject;
class SwView;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > XSelectionChangeListenerRef;
-typedef boost::ptr_vector<XSelectionChangeListenerRef> SelectionChangeListenerArr;
+typedef std::vector<XSelectionChangeListenerRef> SelectionChangeListenerArr;
class SwXTextView :
public ::com::sun::star::view::XSelectionSupplier,