summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpframelayout.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 12:51:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 13:11:06 +0000
commit549efd7f82d9da621294d496e43420c95e9bf500 (patch)
tree2a9a7471afdbd987759057ad377835c8f084279a /lotuswordpro/source/filter/lwpframelayout.cxx
parentResolves: tdf#105209 CHF currency symbol is CHF instead of SFr. (diff)
downloadcore-549efd7f82d9da621294d496e43420c95e9bf500.tar.gz
core-549efd7f82d9da621294d496e43420c95e9bf500.zip
new loplugin: useuniqueptr: lotuswordpro
Change-Id: I1f9569cb5ca05faf12663b3df8508d10a8cd75e6 Reviewed-on: https://gerrit.libreoffice.org/32957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/source/filter/lwpframelayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index ef95f678ad2a..a1cb93598a67 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -767,7 +767,6 @@ LwpFrameLayout::LwpFrameLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
LwpFrameLayout::~LwpFrameLayout()
{
- delete m_pFrame;
}
/**
@@ -781,7 +780,7 @@ void LwpFrameLayout::Read()
{
if(m_pObjStrm->QuickReaduInt16())
{
- m_Link.Read(m_pObjStrm);
+ m_Link.Read(m_pObjStrm.get());
}
}
m_pObjStrm->SkipExtra();
@@ -858,7 +857,7 @@ void LwpFrameLayout::RegisterStyle()
//register frame style
XFFrameStyle* pFrameStyle = new XFFrameStyle();
- m_pFrame = new LwpFrame(this);
+ m_pFrame.reset( new LwpFrame(this) );
m_pFrame->RegisterStyle(pFrameStyle);
//register content style
@@ -1027,7 +1026,6 @@ LwpGroupLayout::LwpGroupLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
LwpGroupLayout::~LwpGroupLayout()
{
- delete m_pFrame;
}
/**
* @descr read group layout object
@@ -1049,7 +1047,7 @@ void LwpGroupLayout::RegisterStyle()
//register frame style
XFFrameStyle* pFrameStyle = new XFFrameStyle();
- m_pFrame = new LwpFrame(this);
+ m_pFrame.reset( new LwpFrame(this) );
m_pFrame->RegisterStyle(pFrameStyle);
//register child frame style
@@ -1214,7 +1212,7 @@ void LwpRubyLayout::Read()
m_nStateFlag = m_pObjStrm->QuickReaduInt16();
m_nXOffset = m_pObjStrm->QuickReadInt32();
m_nYOffset = m_pObjStrm->QuickReadInt32();
- m_objRubyMarker.ReadIndexed(m_pObjStrm);
+ m_objRubyMarker.ReadIndexed(m_pObjStrm.get());
m_pObjStrm->SkipExtra();
}