summaryrefslogtreecommitdiff
path: root/svx/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-07-18 11:44:43 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-25 14:13:46 +0200
commite91f86771b6cd3ef0b414853c720c9dbb0c7fa77 (patch)
tree80dfbbb25175999c0363040ca999bb62ce76a53d /svx/workben
parent31dafba4d7360746abedf93e0476f053e318077c (diff)
Convert SV_DECL_PTRARR_DEL(StringList) to std::vector
Note that this file is not built, so this change is untested. Change-Id: Iabfbd1c020dee4d7f6b490768345b7d14c80e097
Diffstat (limited to 'svx/workben')
-rw-r--r--svx/workben/edittest.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/workben/edittest.cxx b/svx/workben/edittest.cxx
index 4491e3aea8e5..e10f315cb8ee 100644
--- a/svx/workben/edittest.cxx
+++ b/svx/workben/edittest.cxx
@@ -90,6 +90,7 @@
#include <osl/file.hxx>
#include <osl/process.h>
#include <rtl/bootstrap.hxx>
+#include <vector>
#define TB_LEFT 1
#define TB_RIGHT 2
@@ -177,8 +178,16 @@ Reference< XMultiServiceFactory > createApplicationServiceManager()
// --- class EditApp -------------------------------------------------
-SV_DECL_PTRARR_DEL( StringList, String*, 0 );
-SV_IMPL_PTRARR( StringList, String* );
+class StringList : public std::vector<String*>
+{
+public:
+ ~StringList()
+ {
+ for( const_iterator it = begin(); it != end(); ++it )
+ delete *it;
+ }
+};
+
StringList aSimpleHistory;
class EditApp : public Application