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 /editeng | |
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 'editeng')
-rw-r--r-- | editeng/source/editeng/eeobj.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/numitem.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/editeng/eeobj.cxx b/editeng/source/editeng/eeobj.cxx index 4105dd88800f..83055dd4b2fc 100644 --- a/editeng/source/editeng/eeobj.cxx +++ b/editeng/source/editeng/eeobj.cxx @@ -71,7 +71,7 @@ uno::Any EditDataObject::getTransferData( const datatransfer::DataFlavor& rFlavo else { datatransfer::UnsupportedFlavorException aException; - throw( aException ); + throw aException; } return aAny; diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 4862863ebb94..b836e18627b3 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -4338,7 +4338,7 @@ void ImpEditEngine::ImplInitLayoutMode( OutputDevice* pOutDev, sal_Int32 nPara, ComplexTextLayoutFlags nLayoutMode = pOutDev->GetLayoutMode(); // We always use the left position for DrawText() - nLayoutMode &= ~(ComplexTextLayoutFlags::BiDiRtl); + nLayoutMode &= ~ComplexTextLayoutFlags::BiDiRtl; if ( !bCTL && !bR2L) { diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 56cdfe8fb73b..80b45f47ef73 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -592,7 +592,7 @@ SvxNumRule::SvxNumRule( SvxNumRuleFlags nFeatures, } else { - aFmts[i]->SetAbsLSpace( DEF_DRAW_LSPACE * (i) ); + aFmts[i]->SetAbsLSpace( DEF_DRAW_LSPACE * i ); } } else diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 690b54a8d55e..aa1a478e887d 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -884,7 +884,7 @@ static sal_uInt32 lcl_GetRealHeight_Impl(sal_uInt32 nHeight, sal_uInt16 nProp, M short nTemp = (short)nProp; nDiff = nTemp * 20; if(!bCoreInTwip) - nDiff = (short)convertTwipToMm100((long)(nDiff)); + nDiff = (short)convertTwipToMm100((long)nDiff); } break; case MapUnit::Map100thMM: |