summaryrefslogtreecommitdiff
path: root/sw/inc/docary.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-07-13 15:35:23 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-17 15:33:39 +0200
commit5a4796f78f315d8518238f4194b553f671aeadf4 (patch)
tree87a074ef2cf948e0ba7d727e3a36a23883e9d69c /sw/inc/docary.hxx
parent49f7814515c2dca4ef39e518906f8c802d6c888f (diff)
Convert SV_DECL_PTRARR_DEL(SwUnoCrsrTbl) to std::set
Change-Id: I0d79505e2d97b1f8608e6d6e72b317bfaa344b1d
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r--sw/inc/docary.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 86b5bd8b33f3..8cedf2ff3318 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -30,7 +30,9 @@
#include <com/sun/star/i18n/ForbiddenCharacters.hpp>
#include <vector>
+#include <set>
#include <algorithm>
+#include <svl/svarray.hxx>
class SwFieldType;
class SwFmt;
@@ -51,7 +53,6 @@ namespace com { namespace sun { namespace star { namespace i18n {
}}}}
#include <swtypes.hxx>
-#include <svl/svarray.hxx>
// provides some methods for generic operations on lists that contain
// SwFmt* subclasses.
@@ -174,8 +175,11 @@ public:
using _SwRedlineTbl::GetPos;
};
-typedef SwUnoCrsr* SwUnoCrsrPtr;
-SV_DECL_PTRARR_DEL( SwUnoCrsrTbl, SwUnoCrsrPtr, 0 )
+class SwUnoCrsrTbl : public std::set<SwUnoCrsr*> {
+public:
+ // the destructor will free all objects still in the set
+ ~SwUnoCrsrTbl();
+};
class SwOLENodes : public std::vector<SwOLENode*> {};