summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 11:17:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 16:29:15 +0100
commitdaa6898578ec72faa406bfe08977f7d748610716 (patch)
treee75b8a538e8fe94882e84e87131d53840ecf7cc6 /extensions
parent4079089d0a3cf6b55c937447407f68b7339bca68 (diff)
clang: Dead initialization
Change-Id: Ieae5303e55f21044ef8e91e63c4896696cfad51c
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatehdl.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx
index 084ecb2e29f8..28dd1d281a8a 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -117,20 +117,15 @@ void UpdateHandler::enableControls( short nCtrlState )
if ( nCtrlState == mnLastCtrlState )
return;
- bool bEnableControl;
-
- short nCurStateVal = nCtrlState;
- short nOldStateVal = mnLastCtrlState;
-
// the help button should always be the last button in the
// enum list und must never be disabled
for ( int i=0; i<HELP_BUTTON; i++ )
{
- nCurStateVal = (short)(nCtrlState >> i);
- nOldStateVal = (short)(mnLastCtrlState >> i);
+ short nCurStateVal = (short)(nCtrlState >> i);
+ short nOldStateVal = (short)(mnLastCtrlState >> i);
if ( ( nCurStateVal & 0x01 ) != ( nOldStateVal & 0x01 ) )
{
- bEnableControl = ( ( nCurStateVal & 0x01 ) == 0x01 );
+ bool bEnableControl = ( ( nCurStateVal & 0x01 ) == 0x01 );
setControlProperty( msButtonIDs[i], "Enabled", uno::Any( bEnableControl ) );
}
}