From 74dc44a67c556462185f969f694ef2d3df1f893e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 May 2012 17:01:56 +0200 Subject: Convert SV_DECL_PTRARR_DEL(SwFldTypes) to std::vector Change-Id: Ia1f52f25680d3f970aa4f7f60a8e5203326a6796 --- sw/inc/docary.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sw/inc/docary.hxx') diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index 9de2213e9148..2a8642229da0 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -50,8 +50,6 @@ namespace com { namespace sun { namespace star { namespace i18n { #include #include -typedef SwFieldType* SwFldTypePtr; - // PageDescriptor-interface // typedef SwPageDesc * SwPageDescPtr; // SV_DECL_PTRARR_DEL(SwPageDescs, SwPageDescPtr,1); @@ -65,7 +63,12 @@ SV_DECL_PTRARR_DEL(SwSpzFrmFmts,SwFrmFmtPtr,0) typedef SwCharFmt* SwCharFmtPtr; SV_DECL_PTRARR_DEL(SwCharFmts,SwCharFmtPtr,4) -SV_DECL_PTRARR_DEL( SwFldTypes, SwFldTypePtr, INIT_FLDTYPES ) +class SwFldTypes : public std::vector { +public: + // the destructor will free all objects still in the vector + ~SwFldTypes(); + sal_uInt16 GetPos(const SwFieldType* pFieldType) const; +}; class SwTOXTypes : public std::vector { public: -- cgit