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 --- sd/source/core/stlsheet.cxx | 2 +- sd/source/ui/dlg/ins_paste.cxx | 2 +- sd/source/ui/dlg/inspagob.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sd') diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index cbf3475fd9a1..4275663e8ed3 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -272,7 +272,7 @@ SfxItemSet& SdStyleSheet::GetItemSet() if (pSdSheet) { - return(pSdSheet->GetItemSet()); + return pSdSheet->GetItemSet(); } else { diff --git a/sd/source/ui/dlg/ins_paste.cxx b/sd/source/ui/dlg/ins_paste.cxx index 2b4a592ef63f..09f5d54297d0 100644 --- a/sd/source/ui/dlg/ins_paste.cxx +++ b/sd/source/ui/dlg/ins_paste.cxx @@ -42,7 +42,7 @@ void SdInsertPasteDlg::dispose() bool SdInsertPasteDlg::IsInsertBefore() const { - return( m_pRbBefore->IsChecked() ); + return m_pRbBefore->IsChecked(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/dlg/inspagob.cxx b/sd/source/ui/dlg/inspagob.cxx index 80379f718023..ce291508083c 100644 --- a/sd/source/ui/dlg/inspagob.cxx +++ b/sd/source/ui/dlg/inspagob.cxx @@ -116,7 +116,7 @@ std::vector SdInsertPagesObjsDlg::GetList( const sal_uInt16 nType ) */ bool SdInsertPagesObjsDlg::IsLink() { - return( m_pCbxLink->IsChecked() ); + return m_pCbxLink->IsChecked(); } /** @@ -124,7 +124,7 @@ bool SdInsertPagesObjsDlg::IsLink() */ bool SdInsertPagesObjsDlg::IsRemoveUnnessesaryMasterPages() const { - return( m_pCbxMasters->IsChecked() ); + return m_pCbxMasters->IsChecked(); } /** -- cgit