From e4472d3c139294499f4c0caeebd9d4e995958eb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Dec 2018 11:20:03 +0200 Subject: loplugin:unnecessaryparen include more assignments Change-Id: I9fb8366634b31230b732dd38a98f800075529714 Reviewed-on: https://gerrit.libreoffice.org/64510 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/editeng/editundo.cxx | 2 +- editeng/source/outliner/outliner.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng/source') diff --git a/editeng/source/editeng/editundo.cxx b/editeng/source/editeng/editundo.cxx index 7147c3f4f6c9..de6f4f4940b8 100644 --- a/editeng/source/editeng/editundo.cxx +++ b/editeng/source/editeng/editundo.cxx @@ -417,7 +417,7 @@ void EditUndoMoveParagraphs::Undo() Range aTmpRange( nParagraphs ); long nTmpDest = aTmpRange.Min(); - long nDiff = ( nDest - aTmpRange.Min() ); + long nDiff = nDest - aTmpRange.Min(); aTmpRange.Min() += nDiff; aTmpRange.Max() += nDiff; diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 342e5878889f..5d448f579d69 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -460,7 +460,7 @@ void Outliner::SetText( const OUString& rText, Paragraph* pPara ) nCurDepth = nTabs-1; //TODO: sal_Int32 -> sal_Int16! ImplCheckDepth( nCurDepth ); pPara->SetDepth( nCurDepth ); - pPara->nFlags &= (~ParaFlag::HOLDDEPTH); + pPara->nFlags &= ~ParaFlag::HOLDDEPTH; } } if( nPos ) // not with the first paragraph @@ -1850,7 +1850,7 @@ void Outliner::ImplCalcBulletText( sal_Int32 nPara, bool bRecalcLevel, bool bRec if (pPara->GetText() != aBulletText) pPara->SetText( aBulletText ); - pPara->nFlags &= (~ParaFlag::SETBULLETTEXT); + pPara->nFlags &= ~ParaFlag::SETBULLETTEXT; if ( bRecalcLevel ) { -- cgit