From 27bf027a3d717954fcaaa79a2de112c98e26a768 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 23 Jan 2010 12:35:22 +0000 Subject: cmcfixes71: #i108597# fix uninit warnings --- sd/source/filter/eppt/epptso.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 361970345430..0b6f8b99c7bb 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -1967,7 +1967,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool { if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharWeight" ) ), bGetPropStateValue ) ) { - float fFloat; + float fFloat(0.0); mAny >>= fFloat; if ( fFloat >= ::com::sun::star::awt::FontWeight::SEMIBOLD ) mnCharAttr |= 1; @@ -1977,7 +1977,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool { if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharWeightComplex" ) ), bGetPropStateValue ) ) { - float fFloat; + float fFloat(0.0); mAny >>= fFloat; if ( fFloat >= ::com::sun::star::awt::FontWeight::SEMIBOLD ) mnCharAttr |= 1; @@ -2027,7 +2027,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharUnderline" ) ), bGetPropStateValue ) ) { - sal_Int16 nVal; + sal_Int16 nVal(0); mAny >>= nVal; switch ( nVal ) { @@ -2042,7 +2042,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharShadowed" ) ), bGetPropStateValue ) ) { - sal_Bool bBool; + sal_Bool bBool(sal_False); mAny >>= bBool; if ( bBool ) mnCharAttr |= 0x10; @@ -2059,7 +2059,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharRelief" ) ), bGetPropStateValue ) ) { - sal_Int16 nVal; + sal_Int16 nVal(0); mAny >>= nVal; if ( nVal != ::com::sun::star::text::FontRelief::NONE ) mnCharAttr |= 512; @@ -2070,7 +2070,7 @@ void PortionObj::ImplGetPortionValues( FontCollection& rFontCollection, sal_Bool mnCharHeight = 24; if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharHeight" ) ), bGetPropStateValue ) ) { - float fVal; + float fVal(0.0); mAny >>= fVal; mnCharHeight = (sal_uInt16)( fVal + 0.5 ); } -- cgit