summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-18 19:10:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-18 19:10:44 +0000
commit75ed15cc5b9f96a3ebafeba77e6873db6c77f2a0 (patch)
treeae25f4512c1113bbdfd413153cedced45c5502fe
parentfa1649ccdfa9745d27ae4ce6b4975059eff3ebb9 (diff)
cppcheck: the scope of this variable can be reduced
-rw-r--r--cui/source/options/optlingu.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 6a5680833db7..337a963c1a3e 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1851,7 +1851,6 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
DBG_ASSERT( pEntry, "no entry selected" );
if (pEntry)
{
- long nVal = -1;
OptionsUserData aData( (ULONG)pEntry->GetUserData() );
if(aData.HasNumericValue())
{
@@ -1869,7 +1868,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
aDlg.GetNumericFld().SetValue( aData.GetNumericValue() );
if (RET_OK == aDlg.Execute() )
{
- nVal = static_cast<long>(aDlg.GetNumericFld().GetValue());
+ long nVal = static_cast<long>(aDlg.GetNumericFld().GetValue());
if (-1 != nVal && aData.GetNumericValue() != nVal)
{
aData.SetNumericValue( (BYTE)nVal ); //! sets IsModified !