diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-11 17:43:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-14 08:26:23 +0200 |
commit | c2e546c5837943466f2addfafc0d8aedc4c8e041 (patch) | |
tree | 3c78c0d5478130b291167499ced617237e820e8b | |
parent | 06962719b172bbc55d77bb13295dff25826bb963 (diff) |
clang-analyzer-deadcode.DeadStores
The if block had been disabled ever since
c7c85ab76a60be56ebc51657aa30fa84eb2ddf84 "INTEGRATION: CWS pbfinal01," but that
has probably become irrelevant at least since
b80e865d369b4d94f29ac6dcc27379d3c6e72ada "Convert find & replace dialog to .ui"
introduced SvxSearchDialog::ShowOptionalControls_Impl (called a few lines above
the original if block), which (using a slightly different logic to determine
bDrawApp) shows/hides m_pRegExpBtn and m_pLayoutBtn anyway.
Change-Id: Iaf2c1d8ef1b4e3155d7c4109f15be86d738ba074
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index 5c85a1337a51..3dd2321726be 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -804,7 +804,6 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern ) ShowOptionalControls_Impl(); - bool bDraw = false; if ( pSearchItem->GetAppFlag() == SvxSearchApp::CALC ) { m_pCalcGrid->Show(); @@ -864,7 +863,6 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern ) m_pFormatBtn->Hide(); m_pNoFormatBtn->Hide(); m_pAttributeBtn->Hide(); - bDraw = true; } else { @@ -887,12 +885,6 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern ) } } - if ( false && !bDraw ) //!!!!! - { - m_pRegExpBtn->Show(); - m_pLayoutBtn->Show(); - } - // similarity search? if ( ( nModifyFlag & MODIFY_SIMILARITY ) == 0 ) m_pSimilarityBox->Check( pSearchItem->IsLevenshtein() ); |