From 5af60dc534b9217e2c799aacbff03bdf727e806e Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 14 Jun 2012 23:31:29 +0200 Subject: Fix uninitialized values Change-Id: I62b6cb30aeab40be18e5943a27ccd1d7130ad073 --- filter/source/msfilter/escherex.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter') diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 16459e5491e0..9c76138d3fd4 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; } -- cgit