Kaydet (Commit) c99d8834 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in DocxExport

Change-Id: I8d98585fa759070a82bf5738d20b018ec9fbabf0
Reviewed-on: https://gerrit.libreoffice.org/58016
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst fb90f975
......@@ -511,7 +511,7 @@ void DocxExport::ExportDocument_Impl()
InitStyles();
// init sections
m_pSections = new MSWordSections( *this );
m_pSections.reset(new MSWordSections( *this ));
// Make sure images are counted from one, even when exporting multiple documents.
oox::drawingml::DrawingML::ResetCounters();
......@@ -541,8 +541,7 @@ void DocxExport::ExportDocument_Impl()
m_aLinkedTextboxesHelper.clear(); //final cleanup
delete m_pStyles;
m_pStyles = nullptr;
delete m_pSections;
m_pSections = nullptr;
m_pSections.reset();
}
void DocxExport::AppendSection( const SwPageDesc *pPageDesc, const SwSectionFormat* pFormat, sal_uLong nLnNum )
......
......@@ -82,7 +82,7 @@ class DocxExport : public MSWordExportBase
std::unique_ptr<DocxAttributeOutput> m_pAttrOutput;
/// Sections/headers/footers
MSWordSections *m_pSections;
std::unique_ptr<MSWordSections> m_pSections;
/// Header counter.
sal_Int32 m_nHeaders;
......
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