diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 14:49:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 09:57:24 +0200 |
commit | 4250b25c6ae361359300ab6ccde27230f8e01039 (patch) | |
tree | 916a8420282928a92ede0760d696997550ae0840 /starmath | |
parent | 2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff) |
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b
Reviewed-on: https://gerrit.libreoffice.org/39737
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 4 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 819015fd5b9c..2ed0271899da 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -681,7 +681,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector, bOpenString=true; nTextStart = rRet.getLength(); } - else if ((nRecord != CHAR) && (bOpenString)) + else if ((nRecord != CHAR) && bOpenString) { bOpenString=false; if ((rRet.getLength() - nTextStart) > 1) @@ -2889,7 +2889,7 @@ bool MathType::HandleChar(sal_Int32 &rTextStart, int &rSetSize, int nLevel, nPostSup = nPostlSup = 0; int nOriglen=rRet.getLength()-rTextStart; rRet += " {"; // #i24340# make what would be "vec {A}_n" become "{vec {A}}_n" - if ((!bSilent) && ((nOriglen) > 1)) + if ((!bSilent) && (nOriglen > 1)) rRet += "\""; bRet = HandleRecords( nLevel+1, nSelector, nVariation ); if (!bSilent) diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 5ecf54b00d7f..2d45f0bc5445 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1196,7 +1196,7 @@ SmNode *SmParser::DoSubSup(TG nActiveGroup, SmNode *pGivenNode) else pSNode.reset(DoTerm(true)); - aSubNodes[nIndex] = (pENode) ? pENode.release() : pSNode.release(); + aSubNodes[nIndex] = pENode ? pENode.release() : pSNode.release(); } pNode->SetSubNodes(aSubNodes); |