diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-22 16:04:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-22 16:04:36 +0200 |
commit | c17ead7dc9c9dce23033fdda9c316f27a0225b17 (patch) | |
tree | 3f04f0c1f6d64c97bee08a4658080da93d908ee1 /sw/source/filter/ww8/ww8par.cxx | |
parent | 816afdb7c717c324fa4ea98df93b47b093e39d71 (diff) |
loplugin:commaoperator in sw/
Change-Id: I9b00755707687e4c10c02bf49866571f2c44d8ba
Diffstat (limited to 'sw/source/filter/ww8/ww8par.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index f5872baca2da..b40c2f96515e 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2478,7 +2478,10 @@ void SwWW8ImplReader::AppendTextNode(SwPosition& rPos) // cache current paragraph if(m_pPreviousNumPaM) - delete m_pPreviousNumPaM, m_pPreviousNumPaM = nullptr; + { + delete m_pPreviousNumPaM; + m_pPreviousNumPaM = nullptr; + } m_pPreviousNumPaM = new SwPaM(*m_pPaM, m_pPaM); m_pPrevNumRule = pRule; @@ -2488,14 +2491,18 @@ void SwWW8ImplReader::AppendTextNode(SwPosition& rPos) // If the previous paragraph has numbering but the current one does not // we need to add a space after the previous paragraph SetLowerSpacing(*m_pPreviousNumPaM, GetParagraphAutoSpace(m_pWDop->fDontUseHTMLAutoSpacing)); - delete m_pPreviousNumPaM, m_pPreviousNumPaM = nullptr; + delete m_pPreviousNumPaM; + m_pPreviousNumPaM = nullptr; m_pPrevNumRule = nullptr; } else { // clear paragraph cache if(m_pPreviousNumPaM) - delete m_pPreviousNumPaM, m_pPreviousNumPaM = nullptr; + { + delete m_pPreviousNumPaM; + m_pPreviousNumPaM = nullptr; + } m_pPrevNumRule = pRule; } @@ -4136,7 +4143,8 @@ bool SwWW8ImplReader::ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType) CloseAttrEnds(); - delete m_pPlcxMan, m_pPlcxMan = nullptr; + delete m_pPlcxMan; + m_pPlcxMan = nullptr; return bJoined; } |