summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-23 08:13:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-23 10:00:44 +0100
commitb26012ef159bd420ac3bb9275607d3a1622422f7 (patch)
treee39d6e31122a22d7c0c27336410acaafe71c4fcf /svx
parentbfaf5740bb10ce8c51017cba44681de10953bea4 (diff)
Make loplugin:unnecessaryparen look through implicit
...similar to how <https://gerrit.libreoffice.org/#/c/45083/2> "Make not warning about !! in loplugin:simplifybool consistent" does for loplugin:simplifybool Change-Id: I23eef400af71c582d380c9bae6546ce06e8a1e18 Reviewed-on: https://gerrit.libreoffice.org/45122 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/srchdlg.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 4174c5705781..504c52f2de4e 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1680,14 +1680,14 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
bNoSearch = false;
- if ( ( SearchOptionFlags::SEARCHALL & nOptions ) )
+ if ( SearchOptionFlags::SEARCHALL & nOptions )
{
m_pSearchAllBtn->Enable();
bNoSearch = false;
}
else
m_pSearchAllBtn->Disable();
- if ( ( SearchOptionFlags::REPLACE & nOptions ) )
+ if ( SearchOptionFlags::REPLACE & nOptions )
{
m_pReplaceBtn->Enable();
m_pReplaceFrame->get_label_widget()->Enable();
@@ -1702,7 +1702,7 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
m_pReplaceLB->Disable();
m_pReplaceTmplLB->Disable();
}
- if ( ( SearchOptionFlags::REPLACE_ALL & nOptions ) )
+ if ( SearchOptionFlags::REPLACE_ALL & nOptions )
{
m_pReplaceAllBtn->Enable();
bNoSearch = false;
@@ -1716,11 +1716,11 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
m_pSearchLB->Enable( !bNoSearch );
m_pNotesBtn->Enable();
- if ( ( SearchOptionFlags::WHOLE_WORDS & nOptions ) )
+ if ( SearchOptionFlags::WHOLE_WORDS & nOptions )
m_pWordBtn->Enable();
else
m_pWordBtn->Disable();
- if ( ( SearchOptionFlags::BACKWARDS & nOptions ) )
+ if ( SearchOptionFlags::BACKWARDS & nOptions )
{
m_pBackSearchBtn->Enable();
m_pReplaceBackwardsCB->Enable();
@@ -1730,27 +1730,27 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
m_pBackSearchBtn->Disable();
m_pReplaceBackwardsCB->Disable();
}
- if ( ( SearchOptionFlags::REG_EXP & nOptions ) )
+ if ( SearchOptionFlags::REG_EXP & nOptions )
m_pRegExpBtn->Enable();
else
m_pRegExpBtn->Disable();
- if ( ( SearchOptionFlags::WILDCARD & nOptions ) )
+ if ( SearchOptionFlags::WILDCARD & nOptions )
m_pWildcardBtn->Enable();
else
m_pWildcardBtn->Disable();
- if ( ( SearchOptionFlags::EXACT & nOptions ) )
+ if ( SearchOptionFlags::EXACT & nOptions )
m_pMatchCaseCB->Enable();
else
m_pMatchCaseCB->Disable();
- if ( ( SearchOptionFlags::SELECTION & nOptions ) )
+ if ( SearchOptionFlags::SELECTION & nOptions )
m_pSelectionBtn->Enable();
else
m_pSelectionBtn->Disable();
- if ( ( SearchOptionFlags::FAMILIES & nOptions ) )
+ if ( SearchOptionFlags::FAMILIES & nOptions )
m_pLayoutBtn->Enable();
else
m_pLayoutBtn->Disable();
- if ( ( SearchOptionFlags::FORMAT & nOptions ) )
+ if ( SearchOptionFlags::FORMAT & nOptions )
{
m_pAttributeBtn->Enable();
m_pFormatBtn->Enable();
@@ -1763,7 +1763,7 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
m_pNoFormatBtn->Disable();
}
- if ( ( SearchOptionFlags::SIMILARITY & nOptions ) )
+ if ( SearchOptionFlags::SIMILARITY & nOptions )
{
m_pSimilarityBox->Enable();
m_pSimilarityBtn->Enable();