summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 16:30:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:31:52 +0200
commit13341ffa49d58f313a05edae4f4f04c215658e9f (patch)
tree8e2e46f6a83f5e0fa1b09ea160b152f53be5b0ac /sw
parenta1ead1a0281a369087f1b2cce09431542c29bece (diff)
teach unnecessaryparen plugin about other kinds of statements
i.e. do / while / switch Change-Id: Id0985015cc425557f9984734701d56466f8a6088 Reviewed-on: https://gerrit.libreoffice.org/39601 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unofield.cxx2
-rw-r--r--sw/source/uibase/app/docstyle.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index f74834998b65..92258723e11a 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -215,7 +215,7 @@ static SwServiceType lcl_GetServiceForField( const SwField& rField )
case SwFieldIds::DocInfo:
{
const sal_uInt16 nSubType = rField.GetSubType();
- switch( (nSubType & 0xff))
+ switch( nSubType & 0xff )
{
case DI_CHANGE:
nSrvId = ((nSubType&0x300) == DI_SUB_AUTHOR)
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 81b3f60bb3b3..fb1a4328b12d 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2799,7 +2799,7 @@ SfxStyleSheetBase* SwStyleSheetIterator::First()
if( !(bIsSearchUsed && bUsed ))
{
const sal_uInt16 nId = pColl->GetPoolFormatId();
- switch ( (nSMask & ~SFXSTYLEBIT_USED) )
+ switch ( nSMask & ~SFXSTYLEBIT_USED )
{
case SFXSTYLEBIT_USERDEF:
if(!IsPoolUserFormat(nId)) continue;