Kaydet (Commit) 61806cb9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Id193a3fa8c3832da783f8647d6fc6db8375149f4
üst 27ec6a8e
...@@ -368,7 +368,6 @@ void SaneDlg::InitFields() ...@@ -368,7 +368,6 @@ void SaneDlg::InitFields()
int nOption, i, nValue; int nOption, i, nValue;
double fValue; double fValue;
bool bSuccess = false;
const char *ppSpecialOptions[] = { const char *ppSpecialOptions[] = {
"resolution", "resolution",
"tl-x", "tl-x",
...@@ -395,8 +394,7 @@ void SaneDlg::InitFields() ...@@ -395,8 +394,7 @@ void SaneDlg::InitFields()
{ {
double fRes; double fRes;
bSuccess = mrSane.GetOptionValue( nOption, fRes ); if( mrSane.GetOptionValue( nOption, fRes ) )
if( bSuccess )
{ {
mpReslBox->Enable( true ); mpReslBox->Enable( true );
...@@ -468,11 +466,9 @@ void SaneDlg::InitFields() ...@@ -468,11 +466,9 @@ void SaneDlg::InitFields()
pField = mpBottomField; pField = mpBottomField;
} }
nOption = pOptionName ? mrSane.GetOptionByName( pOptionName ) : -1; nOption = pOptionName ? mrSane.GetOptionByName( pOptionName ) : -1;
bSuccess = false;
if( nOption != -1 ) if( nOption != -1 )
{ {
bSuccess = mrSane.GetOptionValue( nOption, fValue ); if( mrSane.GetOptionValue( nOption, fValue ) )
if( bSuccess )
{ {
if( mrSane.GetOptionUnit( nOption ) == SANE_UNIT_MM ) if( mrSane.GetOptionUnit( nOption ) == SANE_UNIT_MM )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment