summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 14:49:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 09:57:24 +0200
commit4250b25c6ae361359300ab6ccde27230f8e01039 (patch)
tree916a8420282928a92ede0760d696997550ae0840 /svtools
parent2ed9a2b641682d8612b5404bd3978ed049aa0266 (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 'svtools')
-rw-r--r--svtools/source/contnr/imivctl1.cxx2
-rw-r--r--svtools/source/graphic/grfmgr2.cxx8
-rw-r--r--svtools/source/misc/transfer2.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 0eaecb450291..0acbf91a2d32 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -384,7 +384,7 @@ void SvxIconChoiceCtrl_Impl::SelectEntry( SvxIconChoiceCtrlEntry* pEntry, bool b
}
else
{
- nEntryFlags &= ~( SvxIconViewFlags::SELECTED);
+ nEntryFlags &= ~SvxIconViewFlags::SELECTED;
pEntry->AssignFlags( nEntryFlags );
nSelectionCount--;
CallSelectHandler();
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index d8687abf75b9..541f90ee69e5 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -354,7 +354,7 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib
{
if(aBitmapWidth == 1)
{
- fRevScaleX = 1.0 / (double)( aUnrotatedWidth );
+ fRevScaleX = 1.0 / (double) aUnrotatedWidth;
for ( long x = 0; x < aUnrotatedWidth ; x++)
{
pMapIX[x] = 0;
@@ -364,7 +364,7 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib
}
else
{
- fRevScaleX = (double) aBitmapWidth / (double)( aUnrotatedWidth);
+ fRevScaleX = (double) aBitmapWidth / (double)aUnrotatedWidth;
fTmp = (double)aBitmapWidth / 2.0;
pMapIX[ 0 ] = (long)fTmp;
@@ -393,7 +393,7 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib
{
if(aBitmapHeight == 1)
{
- fRevScaleY = 1.0 / (double)( aUnrotatedHeight);
+ fRevScaleY = 1.0 / (double)aUnrotatedHeight;
for (long y = 0; y < aUnrotatedHeight; ++y)
{
pMapIY[y] = 0;
@@ -403,7 +403,7 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib
}
else
{
- fRevScaleY = (double) aBitmapHeight / (double)( aUnrotatedHeight);
+ fRevScaleY = (double) aBitmapHeight / (double)aUnrotatedHeight;
fTmp = (double)aBitmapHeight / 2.0;
pMapIY[ 0 ] = (long)fTmp;
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx
index 863d8c1133c9..9073fe0fba07 100644
--- a/svtools/source/misc/transfer2.cxx
+++ b/svtools/source/misc/transfer2.cxx
@@ -285,13 +285,13 @@ void DropTargetHelper::ImplEndDrag()
sal_Int8 DropTargetHelper::AcceptDrop( const AcceptDropEvent& )
{
- return( DNDConstants::ACTION_NONE );
+ return DNDConstants::ACTION_NONE;
}
sal_Int8 DropTargetHelper::ExecuteDrop( const ExecuteDropEvent& )
{
- return( DNDConstants::ACTION_NONE );
+ return DNDConstants::ACTION_NONE;
}