From eea6d3951b66f85df60574e10f19a81bfd7529cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 17 Aug 2017 17:21:53 +0200 Subject: loplugin:unnecessaryparen look for statements like return (function()); Change-Id: I906cf2183489f87225b99b987caca67e39b26cc3 Reviewed-on: https://gerrit.libreoffice.org/41260 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- cui/source/customize/cfg.cxx | 2 +- cui/source/tabpages/tabarea.cxx | 2 +- cui/source/tabpages/tabline.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 5618aef7e764..287867626123 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -3504,7 +3504,7 @@ OUString SvxIconReplacementDialog::ReplaceIconName( const OUString& rMessage ) sal_uInt16 SvxIconReplacementDialog::ShowDialog() { Execute(); - return ( GetCurButtonId() ); + return GetCurButtonId(); } /******************************************************************************* * diff --git a/cui/source/tabpages/tabarea.cxx b/cui/source/tabpages/tabarea.cxx index 5ee18ede6045..104eadf95bf7 100644 --- a/cui/source/tabpages/tabarea.cxx +++ b/cui/source/tabpages/tabarea.cxx @@ -226,7 +226,7 @@ short SvxAreaTabDialog::Ok() // RET_OK is returned, if at least one // TabPage returns sal_True in FillItemSet(). // This happens by default at the moment. - return( SfxTabDialog::Ok() ); + return SfxTabDialog::Ok(); } diff --git a/cui/source/tabpages/tabline.cxx b/cui/source/tabpages/tabline.cxx index 070c4b4de64e..adade3557343 100644 --- a/cui/source/tabpages/tabline.cxx +++ b/cui/source/tabpages/tabline.cxx @@ -173,7 +173,7 @@ short SvxLineTabDialog::Ok() // We return RET_OK if at least one TabPage in FillItemSet() returns sal_True. // We do this by default at the moment. - return( SfxTabDialog::Ok() ); + return SfxTabDialog::Ok(); } -- cgit