[Libreoffice-commits] .: cui/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Dec 18 11:13:27 PST 2010
cui/source/options/optlingu.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 1830edb5023447de28bff83e77ccbc30f43e794b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Dec 18 19:10:44 2010 +0000
cppcheck: the scope of this variable can be reduced
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 2da665a..fabe1f6 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 !
More information about the Libreoffice-commits
mailing list