Kaydet (Commit) bca6b663 authored tarafından Miklos Vajna's avatar Miklos Vajna

DocxAttributeOutput::m_pFoot/EndnotesList: use std::unique_ptr

Change-Id: Ia751c4bc62258760d00c233ecce0b2eda0fe9bfa
üst 05da6e1d
......@@ -8340,9 +8340,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
DocxAttributeOutput::~DocxAttributeOutput()
{
delete m_pFootnotesList, m_pFootnotesList = NULL;
delete m_pEndnotesList, m_pEndnotesList = NULL;
delete m_pTableWrt, m_pTableWrt = NULL;
delete m_pParagraphSdtPrTokenChildren; m_pParagraphSdtPrTokenChildren = NULL;
delete m_pParagraphSdtPrTokenAttributes; m_pParagraphSdtPrTokenAttributes = NULL;
......
......@@ -741,8 +741,8 @@ private:
OUString m_sOriginalBackgroundColor;
OUString m_hyperLinkAnchor;
bool m_endPageRef;
::docx::FootnotesList *m_pFootnotesList;
::docx::FootnotesList *m_pEndnotesList;
std::unique_ptr<docx::FootnotesList> m_pFootnotesList;
std::unique_ptr<docx::FootnotesList> m_pEndnotesList;
int m_footnoteEndnoteRefTag;
boost::scoped_ptr< const WW8_SepInfo > m_pSectionInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment