[Libreoffice-commits] .: 2 commits - binfilter/bf_sc binfilter/bf_sw

Caolán McNamara caolan at kemper.freedesktop.org
Tue Nov 30 13:11:36 PST 2010


 binfilter/bf_sc/source/ui/unoobj/sc_funcuno.cxx        |    4 ++--
 binfilter/bf_sw/source/core/unocore/sw_unoredlines.cxx |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit af4141825cccaea6bd789e713178ba23b01094e0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 30 13:55:46 2010 +0000

    cppcheck: uninitalized variables

diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_funcuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_funcuno.cxx
index 82b7038..eee8f75 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_funcuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_funcuno.cxx
@@ -433,7 +433,7 @@ uno::Any SAL_CALL ScFunctionAccess::callFunction( const ::rtl::OUString& aName,
         {
             //	#87871# accept integer types because Basic passes a floating point 
             //	variable as byte, short or long if it's an integer number.
-            double fVal;
+            double fVal(0.0);
             rArg >>= fVal;
             aTokenArr.AddDouble( fVal );
         }
@@ -586,7 +586,7 @@ uno::Any SAL_CALL ScFunctionAccess::callFunction( const ::rtl::OUString& aName,
                         {
                             //	#87871# accept integer types because Basic passes a floating point 
                             //	variable as byte, short or long if it's an integer number.
-                            double fVal;
+                            double fVal(0.0);
                             rElement >>= fVal;
                             pDoc->SetValue( (USHORT) nCol, (USHORT) nDocRow, 0, fVal );
                         }
commit 098483ce81cf1970aa8ed026ae9f9ad2066ca1e2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 30 13:35:34 2010 +0000

    cppcheck: unused variable

diff --git a/binfilter/bf_sw/source/core/unocore/sw_unoredlines.cxx b/binfilter/bf_sw/source/core/unocore/sw_unoredlines.cxx
index 5c7ed02..e3f2e98 100644
--- a/binfilter/bf_sw/source/core/unocore/sw_unoredlines.cxx
+++ b/binfilter/bf_sw/source/core/unocore/sw_unoredlines.cxx
@@ -115,7 +115,6 @@ Reference< XEnumeration >  SwXRedlines::createEnumeration(void)
     SolarMutexGuard aGuard;
     if(!IsValid())
         throw uno::RuntimeException();
-    const SwRedlineTbl& rRedTbl = GetDoc()->GetRedlineTbl();
     return Reference< XEnumeration >(new SwXRedlineEnumeration(*GetDoc()));
 }
 /*-- 11.01.01 15:28:55---------------------------------------------------


More information about the Libreoffice-commits mailing list