summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par6.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-06 10:12:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-06 15:15:54 +0200
commitd69b1b05fd72e47b8b14816e21e1c4bd38ee66a1 (patch)
tree935282d6f386f6475ffe306ac90775760481724c /sw/source/filter/ww8/ww8par6.cxx
parentd44f8bd5524944c56d748028c83a6d4fa8ff0fa4 (diff)
ofz: fix some leaks
Change-Id: I14a0a2ad39d388d8d96d2100be46b8b4c239e644 Reviewed-on: https://gerrit.libreoffice.org/39635 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 2e02896b2c6f..a88248dd30de 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -385,7 +385,7 @@ void wwSectionManager::SetLeftRight(wwSection &rSection)
*/
if (rSection.maSep.fRTLGutter)
nWWRi += nWWGu;
- else if (!mrReader.m_pWDop->iGutterPos)
+ else if (!mrReader.m_xWDop->iGutterPos)
nWWLe += nWWGu;
// Left / Right
@@ -526,7 +526,7 @@ void wwSectionManager::GetPageULData(const wwSection &rSection,
even pages, something we cannot do. So we will put it on top of all
pages, that way the pages are at least the right size.
*/
- if (!mrReader.m_bVer67 && mrReader.m_pWDop->iGutterPos &&
+ if (!mrReader.m_bVer67 && mrReader.m_xWDop->iGutterPos &&
rSection.maSep.fRTLGutter)
{
nWWUp += rSection.maSep.dzaGutter;
@@ -651,9 +651,9 @@ SwSectionFormat *wwSectionManager::InsertSection(
aSet.Put(SvxFrameDirectionItem(
bRTLPgn ? SvxFrameDirection::Horizontal_RL_TB : SvxFrameDirection::Horizontal_LR_TB, RES_FRAMEDIR));
- if (2 == mrReader.m_pWDop->fpc)
+ if (2 == mrReader.m_xWDop->fpc)
aSet.Put( SwFormatFootnoteAtTextEnd(FTNEND_ATTXTEND));
- if (0 == mrReader.m_pWDop->epc)
+ if (0 == mrReader.m_xWDop->epc)
aSet.Put( SwFormatEndAtTextEnd(FTNEND_ATTXTEND));
aSection.SetProtectFlag(SectionIsProtected(rSection));
@@ -1025,7 +1025,7 @@ void wwSectionManager::CreateSep(const long nTextPos)
// #i31806# but only swap if 2page in 1sheet is enabled.
// it's not clear if dmOrientPage is the correct member to
// decide on this.
- if(mrReader.m_pWDop->doptypography.f2on1 &&
+ if(mrReader.m_xWDop->doptypography.f2on1 &&
aNewSection.maSep.dmOrientPage == 2)
std::swap(aNewSection.maSep.dxaLeft, aNewSection.maSep.dxaRight);
@@ -1155,7 +1155,7 @@ void wwSectionManager::CreateSep(const long nTextPos)
// but aNewSection.HasTitlePage() will be false.
// Likewise for first page footer.
- if (mrReader.m_pWDop->fFacingPages)
+ if (mrReader.m_xWDop->fFacingPages)
aNewSection.maSep.grpfIhdt |= WW8_HEADER_EVEN | WW8_FOOTER_EVEN;
//See if we have a header or footer for each enabled possibility
@@ -4248,7 +4248,7 @@ void SwWW8ImplReader::Read_ParaAutoBefore(sal_uInt16, const sal_uInt8 *pData, sh
if (*pData)
{
SvxULSpaceItem aUL(*static_cast<const SvxULSpaceItem*>(GetFormatAttr(RES_UL_SPACE)));
- aUL.SetUpper(GetParagraphAutoSpace(m_pWDop->fDontUseHTMLAutoSpacing));
+ aUL.SetUpper(GetParagraphAutoSpace(m_xWDop->fDontUseHTMLAutoSpacing));
NewAttr(aUL);
if (m_pAktColl && m_nAktColl < m_vColl.size())
m_vColl[m_nAktColl].m_bParaAutoBefore = true;
@@ -4275,7 +4275,7 @@ void SwWW8ImplReader::Read_ParaAutoAfter(sal_uInt16, const sal_uInt8 *pData, sho
if (*pData)
{
SvxULSpaceItem aUL(*static_cast<const SvxULSpaceItem*>(GetFormatAttr(RES_UL_SPACE)));
- aUL.SetLower(GetParagraphAutoSpace(m_pWDop->fDontUseHTMLAutoSpacing));
+ aUL.SetLower(GetParagraphAutoSpace(m_xWDop->fDontUseHTMLAutoSpacing));
NewAttr(aUL);
if (m_pAktColl && m_nAktColl < m_vColl.size())
m_vColl[m_nAktColl].m_bParaAutoAfter = true;