diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 12:07:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 12:49:40 +0200 |
commit | 61806cb98388c42f950ec8db2f51f4fd402db67d (patch) | |
tree | 19d2612e071d48cb8c3b9c7343b44d742685470c /extensions | |
parent | 27ec6a8ef39e95a7094503aa3036f268f62408ad (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Id193a3fa8c3832da783f8647d6fc6db8375149f4
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index 0d3290890e3b..94c4c0fa2b0d 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -368,7 +368,6 @@ void SaneDlg::InitFields() int nOption, i, nValue; double fValue; - bool bSuccess = false; const char *ppSpecialOptions[] = { "resolution", "tl-x", @@ -395,8 +394,7 @@ void SaneDlg::InitFields() { double fRes; - bSuccess = mrSane.GetOptionValue( nOption, fRes ); - if( bSuccess ) + if( mrSane.GetOptionValue( nOption, fRes ) ) { mpReslBox->Enable( true ); @@ -468,11 +466,9 @@ void SaneDlg::InitFields() pField = mpBottomField; } nOption = pOptionName ? mrSane.GetOptionByName( pOptionName ) : -1; - bSuccess = false; if( nOption != -1 ) { - bSuccess = mrSane.GetOptionValue( nOption, fValue ); - if( bSuccess ) + if( mrSane.GetOptionValue( nOption, fValue ) ) { if( mrSane.GetOptionUnit( nOption ) == SANE_UNIT_MM ) { |