RtfExport: convert remaining two naked pointer members

Change-Id: I2cafd91841801ef22272ba83de2ce6294ca61918
This commit is contained in:
Miklos Vajna
2014-04-04 21:49:54 +02:00
parent d4e4bcb2df
commit 8ed74dc19b
2 changed files with 4 additions and 6 deletions

View File

@@ -836,13 +836,13 @@ RtfExport::RtfExport( RtfExportFilter *pFilter, SwDoc *pDocument, SwPaM *pCurren
{
mbExportModeRTF = true;
// the attribute output for the document
m_pAttrOutput = new RtfAttributeOutput( *this );
m_pAttrOutput.reset(new RtfAttributeOutput(*this));
// that just causes problems for RTF
bSubstituteBullets = false;
// needed to have a complete font table
maFontHelper.bLoadAllFonts = true;
// the related SdrExport
m_pSdrExport = new RtfSdrExport( *this );
m_pSdrExport.reset(new RtfSdrExport(*this));
if (!m_pWriter)
m_pWriter = &m_pFilter->m_aWriter;
@@ -850,8 +850,6 @@ RtfExport::RtfExport( RtfExportFilter *pFilter, SwDoc *pDocument, SwPaM *pCurren
RtfExport::~RtfExport()
{
delete m_pAttrOutput, m_pAttrOutput = NULL;
delete m_pSdrExport, m_pSdrExport = NULL;
}
SvStream& RtfExport::Strm()

View File

@@ -41,12 +41,12 @@ class RtfExport : public MSWordExportBase
Writer* m_pWriter;
/// Attribute output for document.
RtfAttributeOutput *m_pAttrOutput;
boost::shared_ptr<RtfAttributeOutput> m_pAttrOutput;
/// Sections/headers/footers
MSWordSections *m_pSections;
RtfSdrExport *m_pSdrExport;
boost::shared_ptr<RtfSdrExport> m_pSdrExport;
bool m_bOutOutlineOnly;
public: