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

Use boost::shared_ptr

Change-Id: I488accb1fb7588d6b91a8406d78f5897c12b3548
üst e2e2b03b
......@@ -207,7 +207,6 @@ DomainMapper_Impl::DomainMapper_Impl(
m_xInsertTextRange(xInsertTextRange),
m_bIsNewDoc(bIsNewDoc),
m_bInTableStyleRunProps(false),
m_pSdtHelper(0),
m_nTableDepth(0),
m_bHasFtnSep(false),
m_bIgnoreNextPara(false),
......@@ -233,7 +232,7 @@ DomainMapper_Impl::DomainMapper_Impl(
getTableManager( ).startLevel();
m_bUsingEnhancedFields = officecfg::Office::Common::Filter::Microsoft::Import::ImportWWFieldsAsEnhancedFields::get(m_xComponentContext);
m_pSdtHelper = new SdtHelper(*this);
m_pSdtHelper.reset(new SdtHelper(*this));
m_aRedlines.push(std::vector<RedlineParamsPtr>());
}
......@@ -245,7 +244,6 @@ DomainMapper_Impl::~DomainMapper_Impl()
RemoveLastParagraph( );
getTableManager( ).endLevel();
popTableManager( );
delete m_pSdtHelper;
}
......
......@@ -771,7 +771,7 @@ public:
/// If we're inside <w:rPr>, inside <w:style w:type="table">
bool m_bInTableStyleRunProps;
SdtHelper* m_pSdtHelper;
boost::shared_ptr<SdtHelper> m_pSdtHelper;
/// Document background color, applied to every page style.
boost::optional<sal_Int32> m_oBackgroundColor;
......
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