summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/inc/xfilter/xfindex.hxx3
-rw-r--r--lotuswordpro/source/filter/xfilter/xfindex.cxx6
2 files changed, 2 insertions, 7 deletions
diff --git a/lotuswordpro/inc/xfilter/xfindex.hxx b/lotuswordpro/inc/xfilter/xfindex.hxx
index 4fb0aa127e41..ace8353be3f6 100644
--- a/lotuswordpro/inc/xfilter/xfindex.hxx
+++ b/lotuswordpro/inc/xfilter/xfindex.hxx
@@ -65,6 +65,7 @@
#include <xfilter/xfcontent.hxx>
#include <xfilter/xfcontentcontainer.hxx>
#include <xfilter/xftabstop.hxx>
+#include <rtl/ref.hxx>
class XFIndex;
class XFIndexTemplate;
@@ -168,7 +169,7 @@ private:
bool m_bProtect;
bool m_bSeparator;
- std::vector<XFIndexTemplate *> m_aTemplates; // template entry + style
+ std::vector<rtl::Reference<XFIndexTemplate>> m_aTemplates; // template entry + style
#define MAX_TOC_LEVEL 10
std::vector<OUString> m_aTOCSource[MAX_TOC_LEVEL+1];
diff --git a/lotuswordpro/source/filter/xfilter/xfindex.cxx b/lotuswordpro/source/filter/xfilter/xfindex.cxx
index 74411f1d5a6c..8ef69ef6b70f 100644
--- a/lotuswordpro/source/filter/xfilter/xfindex.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfindex.cxx
@@ -68,12 +68,6 @@ XFIndex::XFIndex()
XFIndex::~XFIndex()
{
- while(m_aTemplates.size()>0)
- {
- XFIndexTemplate * pTemplate = m_aTemplates.back();
- m_aTemplates.pop_back();
- delete pTemplate;
- }
}
void XFIndex::AddTemplate(const OUString& level, const OUString& style, XFIndexTemplate* templ)