diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 17:21:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 08:49:37 +0200 |
commit | eea6d3951b66f85df60574e10f19a81bfd7529cc (patch) | |
tree | 0509297cd8fb5e59750f45099e04bbea7be968cc /sfx2 | |
parent | 0501869949b65b27303a41fd235a6ec32a4c90a7 (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 'sfx2')
-rw-r--r-- | sfx2/inc/srchdlg.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/doc/DocumentMetadataAccess.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/inc/srchdlg.hxx b/sfx2/inc/srchdlg.hxx index b6e8d2ae7588..2dfab6612abc 100644 --- a/sfx2/inc/srchdlg.hxx +++ b/sfx2/inc/srchdlg.hxx @@ -65,10 +65,10 @@ public: OUString GetSearchText() const { return m_pSearchEdit->GetText(); } void SetSearchText( const OUString& _rText ) { m_pSearchEdit->SetText( _rText ); } - bool IsOnlyWholeWords() const { return ( m_pWholeWordsBox->IsChecked() ); } - bool IsMarchCase() const { return ( m_pMatchCaseBox->IsChecked() ); } - bool IsWrapAround() const { return ( m_pWrapAroundBox->IsChecked() ); } - bool IsSearchBackwards() const { return ( m_pBackwardsBox->IsChecked() ); } + bool IsOnlyWholeWords() const { return m_pWholeWordsBox->IsChecked(); } + bool IsMarchCase() const { return m_pMatchCaseBox->IsChecked(); } + bool IsWrapAround() const { return m_pWrapAroundBox->IsChecked(); } + bool IsSearchBackwards() const { return m_pBackwardsBox->IsChecked(); } void SetFocusOnEdit(); diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx index b07117339f40..3255b03f3dfd 100644 --- a/sfx2/source/doc/DocumentMetadataAccess.cxx +++ b/sfx2/source/doc/DocumentMetadataAccess.cxx @@ -401,7 +401,7 @@ isPartOfType(struct DocumentMetadataAccess_Impl const & i_rImpl, getURI<rdf::URIs::RDF_TYPE>(i_rImpl.m_xContext), i_xType.get()), uno::UNO_SET_THROW); - return (xEnum->hasMoreElements()); + return xEnum->hasMoreElements(); } catch (const uno::RuntimeException &) { throw; } catch (const uno::Exception & e) { |