summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwppagelayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwppagelayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index 2ce6bc94afe7..16173371c0d8 100644
--- a/lotuswordpro/source/filter/lwppagelayout.cxx
+++ b/lotuswordpro/source/filter/lwppagelayout.cxx
@@ -189,10 +189,10 @@ void LwpPageLayout::ParseColumns(XFPageMaster * pm1)
*/
void LwpPageLayout::ParseBorders(XFPageMaster *pm1)
{
- XFBorders* pBordres = GetXFBorders();
+ std::unique_ptr<XFBorders> pBordres = GetXFBorders();
if(pBordres)
{
- pm1->SetBorders(pBordres);
+ pm1->SetBorders(std::move(pBordres));
}
}
@@ -813,10 +813,10 @@ void LwpHeaderLayout::ParseMargins(XFHeaderStyle* ph1)
void LwpHeaderLayout::ParseBorder(XFHeaderStyle* pHeaderStyle)
{
- XFBorders* pBordres = GetXFBorders();
+ std::unique_ptr<XFBorders> pBordres = GetXFBorders();
if(pBordres)
{
- pHeaderStyle->SetBorders(pBordres);
+ pHeaderStyle->SetBorders(std::move(pBordres));
}
}
@@ -975,10 +975,10 @@ void LwpFooterLayout::ParseMargins(XFFooterStyle* pFooterStyle)
void LwpFooterLayout::ParseBorder(XFFooterStyle* pFooterStyle)
{
- XFBorders* pBordres = GetXFBorders();
+ std::unique_ptr<XFBorders> pBordres = GetXFBorders();
if(pBordres)
{
- pFooterStyle->SetBorders(pBordres);
+ pFooterStyle->SetBorders(std::move(pBordres));
}
}