RtfExport: convert remaining two naked pointer members
Change-Id: I2cafd91841801ef22272ba83de2ce6294ca61918
This commit is contained in:
@@ -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()
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user