summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-17 17:21:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-18 08:49:37 +0200
commiteea6d3951b66f85df60574e10f19a81bfd7529cc (patch)
tree0509297cd8fb5e59750f45099e04bbea7be968cc /vcl/source
parent0501869949b65b27303a41fd235a6ec32a4c90a7 (diff)
loplugin:unnecessaryparen
look for statements like return (function()); Change-Id: I906cf2183489f87225b99b987caca67e39b26cc3 Reviewed-on: https://gerrit.libreoffice.org/41260 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/edit/txtattr.cxx2
-rw-r--r--vcl/source/gdi/gfxlink.cxx2
-rw-r--r--vcl/source/outdev/nativecontrols.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/edit/txtattr.cxx b/vcl/source/edit/txtattr.cxx
index f1a6e1ea6b0c..006c77b99160 100644
--- a/vcl/source/edit/txtattr.cxx
+++ b/vcl/source/edit/txtattr.cxx
@@ -87,7 +87,7 @@ TextAttrib* TextAttribProtect::Clone() const
bool TextAttribProtect::operator==( const TextAttrib& rAttr ) const
{
- return ( TextAttrib::operator==(rAttr ) );
+ return TextAttrib::operator==(rAttr );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index 70e31776c137..135ba2dbb69f 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -73,7 +73,7 @@ const sal_uInt8* GfxLink::GetData() const
if( IsSwappedOut() )
const_cast<GfxLink*>(this)->SwapIn();
- return( mpSwapInData.get() );
+ return mpSwapInData.get();
}
diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx
index 2a9eee180e43..81acddfe2f12 100644
--- a/vcl/source/outdev/nativecontrols.cxx
+++ b/vcl/source/outdev/nativecontrols.cxx
@@ -163,7 +163,7 @@ bool OutputDevice::IsNativeControlSupported( ControlType nType, ControlPart nPar
if ( !AcquireGraphics() )
return false;
- return( mpGraphics->IsNativeControlSupported(nType, nPart) );
+ return mpGraphics->IsNativeControlSupported(nType, nPart);
}
bool OutputDevice::HitTestNativeScrollbar(