summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwplayout.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-07 08:36:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-07 11:39:58 +0100
commit05f12ce00f03be685df9a392001c2ae5f3258edf (patch)
tree6db99b8cef07948163c9688139da726b8086b571 /lotuswordpro/source/filter/lwplayout.cxx
parent01f7be3806b45343131902580ce821a1a3ac3d19 (diff)
use unique_ptr in lotuswordpro
Change-Id: I49ae12639d1a5adab25407115cf65ebcfe3936c9 Reviewed-on: https://gerrit.libreoffice.org/65920 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/source/filter/lwplayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwplayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx
index ce17fab7970f..bcc9482dc0ea 100644
--- a/lotuswordpro/source/filter/lwplayout.cxx
+++ b/lotuswordpro/source/filter/lwplayout.cxx
@@ -843,7 +843,7 @@ LwpBackgroundStuff* LwpMiddleLayout::GetBackgroundStuff()
/**
* @descr: create xfborder.
*/
-XFBorders* LwpMiddleLayout::GetXFBorders()
+std::unique_ptr<XFBorders> LwpMiddleLayout::GetXFBorders()
{
LwpBorderStuff* pBorderStuff = GetBorderStuff();
if(pBorderStuff&&pBorderStuff->GetSide() != 0)
@@ -861,7 +861,7 @@ XFBorders* LwpMiddleLayout::GetXFBorders()
LwpParaStyle::ApplySubBorder(pBorderStuff, nC, xXFBorders.get());
}
}
- return xXFBorders.release();
+ return xXFBorders;
}
return nullptr;
}