diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 12:51:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 13:11:06 +0000 |
commit | 549efd7f82d9da621294d496e43420c95e9bf500 (patch) | |
tree | 2a9a7471afdbd987759057ad377835c8f084279a /lotuswordpro/source/filter/lwpdivinfo.cxx | |
parent | 28a0737f8c21e5c9f789af328348e51b6044c28c (diff) |
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/lwpdivinfo.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdivinfo.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lotuswordpro/source/filter/lwpdivinfo.cxx b/lotuswordpro/source/filter/lwpdivinfo.cxx index d3d50ce3b882..e98139587f98 100644 --- a/lotuswordpro/source/filter/lwpdivinfo.cxx +++ b/lotuswordpro/source/filter/lwpdivinfo.cxx @@ -77,18 +77,18 @@ void LwpDivInfo::Read() { SkipFront(); - m_ParentID.ReadIndexed(m_pObjStrm); + m_ParentID.ReadIndexed(m_pObjStrm.get()); if (LwpFileHeader::m_nFileRevision < 0x0006) { m_pObjStrm->SkipExtra(); } - m_Name.Read(m_pObjStrm); + m_Name.Read(m_pObjStrm.get()); if (LwpFileHeader::m_nFileRevision < 0x0006) { m_pObjStrm->SkipExtra(); } - m_LayoutID.ReadIndexed(m_pObjStrm); + m_LayoutID.ReadIndexed(m_pObjStrm.get()); m_nFlags = m_pObjStrm->QuickReaduInt16(); if (LwpFileHeader::m_nFileRevision < 0x0010) // In 98, graphic links count too { @@ -96,16 +96,16 @@ void LwpDivInfo::Read() m_nFlags &= ~DI_KNOWIFANYOLEDDELINKS; } - m_ExternalName.Read(m_pObjStrm); - m_ExternalType.Read(m_pObjStrm); - m_ClassName.Read(m_pObjStrm); - m_InitialLayoutID.ReadIndexed(m_pObjStrm); + m_ExternalName.Read(m_pObjStrm.get()); + m_ExternalType.Read(m_pObjStrm.get()); + m_ClassName.Read(m_pObjStrm.get()); + m_InitialLayoutID.ReadIndexed(m_pObjStrm.get()); m_nPageNoStyle = m_pObjStrm->QuickReaduInt16(); - m_TabColor.Read(m_pObjStrm); + m_TabColor.Read(m_pObjStrm.get()); // read filler page stuff - m_FillerPageTextID.ReadIndexed(m_pObjStrm); + m_FillerPageTextID.ReadIndexed(m_pObjStrm.get()); // read external file object stuff sal_uInt16 type = m_pObjStrm->QuickReaduInt16(); @@ -119,20 +119,20 @@ void LwpDivInfo::SkipFront() { LwpObjectID toSkip; - toSkip.ReadIndexed(m_pObjStrm); // skip ListNext; + toSkip.ReadIndexed(m_pObjStrm.get()); // skip ListNext; if (LwpFileHeader::m_nFileRevision < 0x0006) { m_pObjStrm->SkipExtra(); } - toSkip.ReadIndexed(m_pObjStrm); // skip ListPrevious; + toSkip.ReadIndexed(m_pObjStrm.get()); // skip ListPrevious; if (LwpFileHeader::m_nFileRevision < 0x0006) { m_pObjStrm->SkipExtra(); } - toSkip.ReadIndexed(m_pObjStrm); // skip Head; + toSkip.ReadIndexed(m_pObjStrm.get()); // skip Head; if (LwpFileHeader::m_nFileRevision < 0x0006) { - toSkip.ReadIndexed(m_pObjStrm); //skip tail + toSkip.ReadIndexed(m_pObjStrm.get()); //skip tail m_pObjStrm->SkipExtra(); } } |