summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwppagelayout.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-28 11:44:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-28 11:44:17 +0000
commit36398bb8ba85dea1d16fe86cd78b0da8380fe7ad (patch)
tree70deb5e4b074dba4cf1f786812bd8046d413360f /lotuswordpro/source/filter/lwppagelayout.cxx
parente7c960e233e4a7742a8359f6f4b3ae4a62e069ea (diff)
std::unique_ptr -> rtl::Reference for loplugin:refcounting
Change-Id: I83cccff1f4fb172e1b6aa5c1cfda93de2e4be525
Diffstat (limited to 'lotuswordpro/source/filter/lwppagelayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index 4b674214591e..35d6119bb175 100644
--- a/lotuswordpro/source/filter/lwppagelayout.cxx
+++ b/lotuswordpro/source/filter/lwppagelayout.cxx
@@ -872,7 +872,7 @@ void LwpHeaderLayout::ParseWaterMark(XFHeaderStyle * pHeaderStyle)
void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1)
{
- std::unique_ptr<XFHeader> xHeader(new XFHeader());
+ rtl::Reference<XFHeader> xHeader(new XFHeader());
rtl::Reference<LwpObject> pStory = m_Content.obj();
if(pStory.is())
{
@@ -892,7 +892,7 @@ void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1)
pChangeMgr->SetHeadFootFribMap(false);
}
- mp1->SetHeader(xHeader.release());
+ mp1->SetHeader(xHeader);
}
LwpFooterLayout::LwpFooterLayout( LwpObjectHeader &objHdr, LwpSvStream* pStrm )
@@ -1023,7 +1023,7 @@ void LwpFooterLayout::ParseBackColor(XFFooterStyle* pFooterStyle)
void LwpFooterLayout::RegisterStyle(XFMasterPage* mp1)
{
- std::unique_ptr<XFFooter> xFooter(new XFFooter());
+ rtl::Reference<XFFooter> xFooter(new XFFooter());
rtl::Reference<LwpObject> pStory = m_Content.obj(VO_STORY);
//Call the RegisterStyle first to register the styles in footer paras, and then XFConvert()
if(pStory.is())
@@ -1043,7 +1043,7 @@ void LwpFooterLayout::RegisterStyle(XFMasterPage* mp1)
pChangeMgr->SetHeadFootFribMap(false);
}
- mp1->SetFooter(xFooter.release());
+ mp1->SetFooter(xFooter);
}
void LwpFooterLayout::ParseWaterMark(XFFooterStyle * pFooterStyle)