diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-11-25 09:52:30 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-11-25 09:52:30 +0000 |
commit | ae40de88891ea4d7c3104d6fdea100a6a51a0365 (patch) | |
tree | e59cd55d01c061ea9fd7a727e2e21d5273429dd6 /xmloff/source/style | |
parent | 7b109f7f6ae663f8c934c84083cd011c13080e84 (diff) |
INTEGRATION: CWS valgrind01 (1.12.196); FILE MERGED
2003/10/13 14:45:07 hr 1.12.196.1: #i20184#: initialize nValue before feeding it to lcl_xmloff_setAny() (5 locations)
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/xmlbahdl.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/xmloff/source/style/xmlbahdl.cxx b/xmloff/source/style/xmlbahdl.cxx index 3da624080fd9..22a68395eb3e 100644 --- a/xmloff/source/style/xmlbahdl.cxx +++ b/xmloff/source/style/xmlbahdl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlbahdl.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $ + * last change: $Author: rt $ $Date: 2003-11-25 10:52:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -149,7 +149,7 @@ sal_Bool XMLNumberPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, { sal_Bool bRet = sal_False; - sal_Int32 nValue; + sal_Int32 nValue = 0; bRet = rUnitConverter.convertNumber( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); @@ -198,10 +198,9 @@ sal_Bool XMLNumberNonePropHdl::importXML( const OUString& rStrImpValue, Any& rVa { sal_Bool bRet = sal_False; - sal_Int32 nValue; + sal_Int32 nValue = 0; if( rStrImpValue == sZeroStr ) { - nValue = 0; bRet = sal_True; } else @@ -253,7 +252,7 @@ sal_Bool XMLMeasurePropHdl::importXML( const OUString& rStrImpValue, Any& rValue { sal_Bool bRet = sal_False; - sal_Int32 nValue; + sal_Int32 nValue = 0; bRet = rUnitConverter.convertMeasure( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); @@ -367,7 +366,7 @@ sal_Bool XMLPercentPropHdl::importXML( const OUString& rStrImpValue, Any& rValue { sal_Bool bRet = sal_False; - sal_Int32 nValue; + sal_Int32 nValue = 0; bRet = rUnitConverter.convertPercent( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); @@ -405,7 +404,7 @@ sal_Bool XMLMeasurePxPropHdl::importXML( const OUString& rStrImpValue, Any& rVal { sal_Bool bRet = sal_False; - sal_Int32 nValue; + sal_Int32 nValue = 0; bRet = rUnitConverter.convertMeasurePx( nValue, rStrImpValue ); lcl_xmloff_setAny( rValue, nValue, nBytes ); |