[Libreoffice-commits] .: filter/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Jun 14 14:32:17 PDT 2012


 filter/source/msfilter/escherex.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5af60dc534b9217e2c799aacbff03bdf727e806e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Jun 14 23:31:29 2012 +0200

    Fix uninitialized values
    
    Change-Id: I62b6cb30aeab40be18e5943a27ccd1d7130ad073

diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 16459e5..9c76138 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -1953,7 +1953,7 @@ sal_Int32 GetValueForEnhancedCustomShapeParameter( const com::sun::star::drawing
     sal_Int32 nValue = 0;
     if ( rParameter.Value.getValueTypeClass() == uno::TypeClass_DOUBLE )
     {
-        double fValue;
+        double fValue(0.0);
         if ( rParameter.Value >>= fValue )
             nValue = (sal_Int32)fValue;
     }
@@ -1983,7 +1983,7 @@ sal_Bool GetValueForEnhancedCustomShapeHandleParameter( sal_Int32& nRetValue, co
     nRetValue = 0;
     if ( rParameter.Value.getValueTypeClass() == uno::TypeClass_DOUBLE )
     {
-        double fValue;
+        double fValue(0.0);
         if ( rParameter.Value >>= fValue )
             nRetValue = (sal_Int32)fValue;
     }


More information about the Libreoffice-commits mailing list