[Libreoffice-commits] .: binfilter/bf_xmloff
Christian Lohmaier
cloph at kemper.freedesktop.org
Sat Apr 9 11:08:04 PDT 2011
binfilter/bf_xmloff/source/style/xmloff_DrawAspectHdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_EnumPropertyHdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_PageMasterExportPropMapper.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_PageMasterPropHdl.cxx | 8 ++---
binfilter/bf_xmloff/source/style/xmloff_XMLBackgroundImageExport.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_XMLBitmapRepeatOffsetPropertyHandler.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_XMLConstantsPropertyHandler.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_XMLFillBitmapSizePropertyHandler.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_breakhdl.cxx | 4 +-
binfilter/bf_xmloff/source/style/xmloff_cdouthdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_chrhghdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_csmaphdl.cxx | 4 +-
binfilter/bf_xmloff/source/style/xmloff_durationhdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_escphdl.cxx | 4 +-
binfilter/bf_xmloff/source/style/xmloff_fonthdl.cxx | 6 +--
binfilter/bf_xmloff/source/style/xmloff_kernihdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_numehelp.cxx | 4 +-
binfilter/bf_xmloff/source/style/xmloff_opaquhdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_postuhdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_shdwdhdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_splithdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_undlihdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_weighhdl.cxx | 2 -
binfilter/bf_xmloff/source/style/xmloff_xmlbahdl.cxx | 16 +++++-----
binfilter/bf_xmloff/source/style/xmloff_xmlnume.cxx | 4 +-
binfilter/bf_xmloff/source/text/xmloff_XMLIndexMarkExport.cxx | 2 -
binfilter/bf_xmloff/source/text/xmloff_XMLTextMarkImportContext.cxx | 2 -
binfilter/bf_xmloff/source/text/xmloff_txtexppr.cxx | 2 -
binfilter/bf_xmloff/source/text/xmloff_txtimp.cxx | 2 -
binfilter/bf_xmloff/source/text/xmloff_txtprhdl.cxx | 6 +--
30 files changed, 49 insertions(+), 49 deletions(-)
New commits:
commit 3453e5db543659b43ff3a850cf34fd9d34e14f91
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Sat Apr 9 20:13:35 2011 +0200
WaE - variable may be used uninitialized
diff --git a/binfilter/bf_xmloff/source/style/xmloff_DrawAspectHdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_DrawAspectHdl.cxx
index e81a14f..5f21ece 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_DrawAspectHdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_DrawAspectHdl.cxx
@@ -83,7 +83,7 @@ sal_Bool DrawAspectHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValu
sal_Bool bRet = sal_False;
OUStringBuffer aOut;
- sal_Int32 nAspect;
+ sal_Int32 nAspect(0);
if( rValue >>= nAspect )
{
if( (nAspect & 1) != 0 )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_EnumPropertyHdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_EnumPropertyHdl.cxx
index 578adf0..6e67902 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_EnumPropertyHdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_EnumPropertyHdl.cxx
@@ -96,7 +96,7 @@ sal_Bool XMLEnumPropertyHdl::importXML( const OUString& rStrImpValue, Any& rValu
sal_Bool XMLEnumPropertyHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if(!(rValue >>= nValue ))
if(!::cppu::enum2int(nValue, rValue) )
return sal_False;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_PageMasterExportPropMapper.cxx b/binfilter/bf_xmloff/source/style/xmloff_PageMasterExportPropMapper.cxx
index 986e32a..8ddc9f4 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_PageMasterExportPropMapper.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_PageMasterExportPropMapper.cxx
@@ -67,7 +67,7 @@ inline void lcl_RemoveState( XMLPropertyState* pState )
void lcl_RemoveStateIfZero16( XMLPropertyState* pState )
{
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
if( (pState->maValue >>= nValue) && !nValue )
lcl_RemoveState( pState );
}
diff --git a/binfilter/bf_xmloff/source/style/xmloff_PageMasterPropHdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_PageMasterPropHdl.cxx
index d6675c0..948c2ca 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_PageMasterPropHdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_PageMasterPropHdl.cxx
@@ -132,7 +132,7 @@ sal_Bool XMLPMPropHdl_NumFormat::importXML(
Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const
{
- sal_Int16 nSync;
+ sal_Int16 nSync(0);
sal_Int16 nNumType = NumberingType::NUMBER_NONE;
rUnitConverter.convertNumFormat( nNumType, rStrImpValue, OUString(),
sal_True );
@@ -166,7 +166,7 @@ sal_Bool XMLPMPropHdl_NumFormat::exportXML(
const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nNumType;
+ sal_Int16 nNumType(0);
if( rValue >>= nNumType )
{
@@ -222,7 +222,7 @@ sal_Bool XMLPMPropHdl_NumLetterSync::exportXML(
const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nNumType;
+ sal_Int16 nNumType(0);
if( rValue >>= nNumType )
{
@@ -273,7 +273,7 @@ sal_Bool XMLPMPropHdl_PaperTrayNumber::exportXML(
const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
sal_Bool bRet = sal_False;
- sal_Int32 nPaperTray;
+ sal_Int32 nPaperTray(0);
if( rValue >>= nPaperTray )
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_XMLBackgroundImageExport.cxx b/binfilter/bf_xmloff/source/style/xmloff_XMLBackgroundImageExport.cxx
index f875d04..643b01e 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_XMLBackgroundImageExport.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_XMLBackgroundImageExport.cxx
@@ -150,7 +150,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL,
if( pTransparency )
{
- sal_Int8 nTransparency;
+ sal_Int8 nTransparency(0);
if( (*pTransparency) >>= nTransparency )
{
OUStringBuffer aLclOut;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_XMLBitmapRepeatOffsetPropertyHandler.cxx b/binfilter/bf_xmloff/source/style/xmloff_XMLBitmapRepeatOffsetPropertyHandler.cxx
index cd213a1..4134d78 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_XMLBitmapRepeatOffsetPropertyHandler.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_XMLBitmapRepeatOffsetPropertyHandler.cxx
@@ -89,7 +89,7 @@ sal_Bool XMLBitmapRepeatOffsetPropertyHandler::exportXML(
{
OUStringBuffer aOut;
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( rValue >>= nValue )
{
SvXMLUnitConverter::convertPercent( aOut, nValue );
diff --git a/binfilter/bf_xmloff/source/style/xmloff_XMLConstantsPropertyHandler.cxx b/binfilter/bf_xmloff/source/style/xmloff_XMLConstantsPropertyHandler.cxx
index bad137b..f9aaa43 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_XMLConstantsPropertyHandler.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_XMLConstantsPropertyHandler.cxx
@@ -75,7 +75,7 @@ sal_Bool XMLConstantsPropertyHandler::exportXML(
sal_Bool bRet = false;
- sal_Int32 nEnum;
+ sal_Int32 nEnum(0);
if( rValue.hasValue() && (rValue.getValueTypeClass() == TypeClass_ENUM))
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_XMLFillBitmapSizePropertyHandler.cxx b/binfilter/bf_xmloff/source/style/xmloff_XMLFillBitmapSizePropertyHandler.cxx
index 1ef9c57..b5268d0 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_XMLFillBitmapSizePropertyHandler.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_XMLFillBitmapSizePropertyHandler.cxx
@@ -78,7 +78,7 @@ sal_Bool XMLFillBitmapSizePropertyHandler::exportXML(
{
OUStringBuffer aOut;
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( rValue >>= nValue )
{
if( nValue < 0 )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_breakhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_breakhdl.cxx
index 4b27a08..5d48244 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_breakhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_breakhdl.cxx
@@ -85,7 +85,7 @@ sal_Bool XMLFmtBreakBeforePropHdl::exportXML( OUString& rStrExpValue, const uno:
if( !( rValue >>= eBreak ) )
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( !( rValue >>= nValue ) )
return sal_False;
@@ -148,7 +148,7 @@ sal_Bool XMLFmtBreakAfterPropHdl::exportXML( OUString& rStrExpValue, const uno::
if( !( rValue >>= eBreak ) )
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( !( rValue >>= nValue ) )
return sal_False;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_cdouthdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_cdouthdl.cxx
index 0c2d0b3..6388bc5 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_cdouthdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_cdouthdl.cxx
@@ -76,7 +76,7 @@ sal_Bool XMLCrossedOutPropHdl::importXML( const OUString& rStrImpValue, uno::Any
sal_Bool XMLCrossedOutPropHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
OUStringBuffer aOut;
if( rValue >>= nValue )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_chrhghdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_chrhghdl.cxx
index 64697f5..7fc4029 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_chrhghdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_chrhghdl.cxx
@@ -119,7 +119,7 @@ sal_Bool XMLCharHeightPropHdl::exportXML( OUString& rStrExpValue, const uno::Any
{
OUStringBuffer aOut( rStrExpValue );
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
if( rValue >>= nValue )
{
rUnitConverter.convertPercent( aOut, nValue );
diff --git a/binfilter/bf_xmloff/source/style/xmloff_csmaphdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_csmaphdl.cxx
index 86464ca..012056e 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_csmaphdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_csmaphdl.cxx
@@ -76,7 +76,7 @@ sal_Bool XMLCaseMapPropHdl::importXML( const OUString& rStrImpValue, uno::Any& r
sal_Bool XMLCaseMapPropHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_uInt16 nValue;
+ sal_uInt16 nValue(0);
OUStringBuffer aOut;
if( rValue >>= nValue )
@@ -118,7 +118,7 @@ sal_Bool XMLCaseMapVariantHdl::importXML( const OUString& rStrImpValue, uno::Any
sal_Bool XMLCaseMapVariantHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
- sal_uInt16 nValue;
+ sal_uInt16 nValue(0);
OUStringBuffer aOut;
if( rValue >>= nValue )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_durationhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_durationhdl.cxx
index a412339..3f27e3a 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_durationhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_durationhdl.cxx
@@ -63,7 +63,7 @@ sal_Bool XMLDurationMS16PropHdl_Impl::exportXML(
const Any& rValue,
const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
- sal_Int16 nMS;
+ sal_Int16 nMS(0);
if(rValue >>= nMS)
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_escphdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_escphdl.cxx
index 82da887..2ad00d7 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_escphdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_escphdl.cxx
@@ -89,7 +89,7 @@ sal_Bool XMLEscapementPropHdl::importXML( const OUString& rStrImpValue, uno::Any
sal_Bool XMLEscapementPropHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
OUStringBuffer aOut;
if( rValue >>= nValue )
@@ -154,7 +154,7 @@ sal_Bool XMLEscapementHeightPropHdl::exportXML( OUString& rStrExpValue, const un
{
OUStringBuffer aOut( rStrExpValue );
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( rValue >>= nValue )
{
if( rStrExpValue.getLength() )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_fonthdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_fonthdl.cxx
index 885c58c..5d1dff2 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_fonthdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_fonthdl.cxx
@@ -225,7 +225,7 @@ sal_Bool XMLFontFamilyPropHdl::exportXML( OUString& rStrExpValue, const uno::Any
sal_Bool bRet = sal_False;
OUStringBuffer aOut;
- sal_Int16 nFamily;
+ sal_Int16 nFamily(0);
if( rValue >>= nFamily )
{
FontFamily eFamily = (FontFamily)nFamily;
@@ -262,7 +262,7 @@ sal_Bool XMLFontEncodingPropHdl::exportXML( OUString& rStrExpValue, const uno::A
{
sal_Bool bRet = sal_False;
OUStringBuffer aOut;
- sal_Int16 nSet;
+ sal_Int16 nSet(0);
if( rValue >>= nSet )
{
@@ -301,7 +301,7 @@ sal_Bool XMLFontPitchPropHdl::importXML( const OUString& rStrImpValue, uno::Any&
sal_Bool XMLFontPitchPropHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nPitch;
+ sal_Int16 nPitch(0);
OUStringBuffer aOut;
FontPitch ePitch = PITCH_DONTKNOW;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_kernihdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_kernihdl.cxx
index 207543b..d978695 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_kernihdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_kernihdl.cxx
@@ -69,7 +69,7 @@ sal_Bool XMLKerningPropHdl::importXML( const OUString& rStrImpValue, Any& rValue
sal_Bool XMLKerningPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
if( rValue >>= nValue )
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_numehelp.cxx b/binfilter/bf_xmloff/source/style/xmloff_numehelp.cxx
index 51fd0ae..19e1f0b 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_numehelp.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_numehelp.cxx
@@ -290,7 +290,7 @@ sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNu
uno::Any aIsStandardFormat = xNumberPropertySet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STANDARDFORMAT)));
aIsStandardFormat >>= bIsStandard;
uno::Any aNumberType = xNumberPropertySet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(XML_TYPE)));
- sal_Int16 nNumberType;
+ sal_Int16 nNumberType(0);
if ( aNumberType >>= nNumberType )
{
return nNumberType;
@@ -375,7 +375,7 @@ sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNu
uno::Any aIsStandardFormat = xNumberPropertySet->getPropertyValue(sStandardFormat);
aIsStandardFormat >>= bIsStandard;
uno::Any aNumberType = xNumberPropertySet->getPropertyValue(sType);
- sal_Int16 nNumberType;
+ sal_Int16 nNumberType(0);
if ( aNumberType >>= nNumberType )
{
return nNumberType;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_opaquhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_opaquhdl.cxx
index bdb50ee..54ad0aa 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_opaquhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_opaquhdl.cxx
@@ -65,7 +65,7 @@ sal_Bool XMLOpaquePropHdl::importXML( const OUString& rStrImpValue, Any& rValue,
sal_Bool XMLOpaquePropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
sal_Bool bRet = sal_False;
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if (rValue >>= bValue)
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_postuhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_postuhdl.cxx
index 4ba7f0c..8621a0b 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_postuhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_postuhdl.cxx
@@ -81,7 +81,7 @@ sal_Bool XMLPosturePropHdl::exportXML( OUString& rStrExpValue, const uno::Any& r
if( !( rValue >>= eSlant ) )
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( !( rValue >>= nValue ) )
return sal_False;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_shdwdhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_shdwdhdl.cxx
index c412f05..231861e 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_shdwdhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_shdwdhdl.cxx
@@ -64,7 +64,7 @@ sal_Bool XMLShadowedPropHdl::importXML( const OUString& rStrImpValue, Any& rValu
sal_Bool XMLShadowedPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
sal_Bool bRet = sal_False;
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if (rValue >>= bValue)
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_splithdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_splithdl.cxx
index 6e12f01..931523a 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_splithdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_splithdl.cxx
@@ -60,7 +60,7 @@ sal_Bool XMLFmtSplitPropHdl::importXML( const OUString& rStrImpValue, Any& rValu
sal_Bool XMLFmtSplitPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
sal_Bool bRet = sal_False;
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if (rValue >>= bValue)
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_undlihdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_undlihdl.cxx
index 5fcc9ee..8daaee2 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_undlihdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_undlihdl.cxx
@@ -90,7 +90,7 @@ sal_Bool XMLUnderlinePropHdl::importXML( const OUString& rStrImpValue, uno::Any&
sal_Bool XMLUnderlinePropHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
OUStringBuffer aOut;
if( rValue >>= nValue )
diff --git a/binfilter/bf_xmloff/source/style/xmloff_weighhdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_weighhdl.cxx
index 5f56e2f..8349b45 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_weighhdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_weighhdl.cxx
@@ -137,7 +137,7 @@ sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rVa
float fValue = float();
if( !( rValue >>= fValue ) )
{
- sal_Int32 nValue;
+ sal_Int32 nValue(0);
if( rValue >>= nValue )
{
fValue = (float)nValue;
diff --git a/binfilter/bf_xmloff/source/style/xmloff_xmlbahdl.cxx b/binfilter/bf_xmloff/source/style/xmloff_xmlbahdl.cxx
index 5a5bc0f..1233498 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_xmlbahdl.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_xmlbahdl.cxx
@@ -258,7 +258,7 @@ sal_Bool XMLBoolPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, c
{
sal_Bool bRet = sal_False;
OUStringBuffer aOut;
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if (rValue >>= bValue)
{
@@ -296,7 +296,7 @@ sal_Bool XMLNBoolPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue,
{
sal_Bool bRet = sal_False;
OUStringBuffer aOut;
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if (rValue >>= bValue)
{
@@ -410,7 +410,7 @@ sal_Bool XMLColorPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue,
{
sal_Bool bRet = sal_False;
Color aColor;
- sal_Int32 nColor;
+ sal_Int32 nColor(0);
if( rValue >>= nColor )
{
@@ -478,7 +478,7 @@ sal_Bool XMLDoublePropHdl::exportXML( OUString& rStrExpValue, const Any& rValue,
{
sal_Bool bRet = sal_False;
- double fValue;
+ double fValue = 0.0;
if( rValue >>= fValue )
{
@@ -526,7 +526,7 @@ sal_Bool XMLColorTransparentPropHdl::importXML( const OUString& rStrImpValue, An
sal_Bool XMLColorTransparentPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int32 nColor;
+ sal_Int32 nColor(0);
if( rStrExpValue == sTransparent )
bRet = sal_False;
@@ -610,7 +610,7 @@ sal_Bool XMLColorAutoPropHdl::importXML( const OUString& rStrImpValue, Any& rVal
// This is a multi property: the value might be set to AUTO_COLOR
// already by the XMLIsAutoColorPropHdl!
- sal_Int32 nColor;
+ sal_Int32 nColor(0);
if( !(rValue >>= nColor) || -1 != nColor )
{
Color aColor;
@@ -626,7 +626,7 @@ sal_Bool XMLColorAutoPropHdl::exportXML( OUString& rStrExpValue, const Any& rVal
{
sal_Bool bRet = sal_False;
- sal_Int32 nColor;
+ sal_Int32 nColor(0);
if( (rValue >>= nColor) && -1 != nColor )
{
Color aColor( nColor );
@@ -669,7 +669,7 @@ sal_Bool XMLIsAutoColorPropHdl::importXML( const OUString& rStrImpValue, Any& rV
sal_Bool XMLIsAutoColorPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int32 nColor;
+ sal_Int32 nColor(0);
if( (rValue >>= nColor) && -1 == nColor )
{
diff --git a/binfilter/bf_xmloff/source/style/xmloff_xmlnume.cxx b/binfilter/bf_xmloff/source/style/xmloff_xmlnume.cxx
index 75dc059..7baa72c 100644
--- a/binfilter/bf_xmloff/source/style/xmloff_xmlnume.cxx
+++ b/binfilter/bf_xmloff/source/style/xmloff_xmlnume.cxx
@@ -160,7 +160,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( INT32 nLevel,
}
else if( rProp.Name.equalsAsciiL( XML_UNO_NAME_NRULE_ADJUST, sizeof(XML_UNO_NAME_NRULE_ADJUST)-1 ) )
{
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
rProp.Value >>= nValue;
eAdjust = nValue;
}
@@ -226,7 +226,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( INT32 nLevel,
}
else if( rProp.Name.equalsAsciiL( XML_UNO_NAME_NRULE_VERT_ORIENT, sizeof(XML_UNO_NAME_NRULE_VERT_ORIENT)-1 ) )
{
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
rProp.Value >>= nValue;
eImageVertOrient = nValue;
}
diff --git a/binfilter/bf_xmloff/source/text/xmloff_XMLIndexMarkExport.cxx b/binfilter/bf_xmloff/source/text/xmloff_XMLIndexMarkExport.cxx
index 5477217..0a74b29 100644
--- a/binfilter/bf_xmloff/source/text/xmloff_XMLIndexMarkExport.cxx
+++ b/binfilter/bf_xmloff/source/text/xmloff_XMLIndexMarkExport.cxx
@@ -224,7 +224,7 @@ void lcl_ExportPropertyBool( SvXMLExport& rExport,
{
rAny = rPropSet->getPropertyValue( sProperty );
- sal_Bool bValue;
+ sal_Bool bValue(sal_False);
if( rAny >>= bValue )
{
if( bValue )
diff --git a/binfilter/bf_xmloff/source/text/xmloff_XMLTextMarkImportContext.cxx b/binfilter/bf_xmloff/source/text/xmloff_XMLTextMarkImportContext.cxx
index 992a2e1..00ef7f8 100644
--- a/binfilter/bf_xmloff/source/text/xmloff_XMLTextMarkImportContext.cxx
+++ b/binfilter/bf_xmloff/source/text/xmloff_XMLTextMarkImportContext.cxx
@@ -218,7 +218,7 @@ sal_Bool XMLTextMarkImportContext::FindName(
const Reference<XAttributeList> & xAttrList,
OUString& sName)
{
- sal_Bool bNameOK;
+ sal_Bool bNameOK(sal_False);
// find name attribute first
sal_Int16 nLength = xAttrList->getLength();
diff --git a/binfilter/bf_xmloff/source/text/xmloff_txtexppr.cxx b/binfilter/bf_xmloff/source/text/xmloff_txtexppr.cxx
index dc0dbea..ca8c124 100644
--- a/binfilter/bf_xmloff/source/text/xmloff_txtexppr.cxx
+++ b/binfilter/bf_xmloff/source/text/xmloff_txtexppr.cxx
@@ -748,7 +748,7 @@ void XMLTextExportPropertySetMapper::ContextFilter(
if( pHeightMinAbsState )
{
- sal_Int16 nRel;
+ sal_Int16 nRel(0);
if( (SizeType::MIN != nSizeType) ||
( pHeightMinRelState &&
( !(pHeightMinRelState->maValue >>= nRel) || nRel > 0 ) ) )
diff --git a/binfilter/bf_xmloff/source/text/xmloff_txtimp.cxx b/binfilter/bf_xmloff/source/text/xmloff_txtimp.cxx
index af5cc5b..0626459 100644
--- a/binfilter/bf_xmloff/source/text/xmloff_txtimp.cxx
+++ b/binfilter/bf_xmloff/source/text/xmloff_txtimp.cxx
@@ -1440,7 +1440,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext(
TextContentAnchorType eAnchorType =
XML_TEXT_TYPE_TEXTBOX == eType ? TextContentAnchorType_AT_FRAME
: TextContentAnchorType_AT_PAGE;
- sal_uInt16 nType;
+ sal_uInt16 nType(0);
switch( nToken )
{
case XML_TOK_TEXT_APPLET_PAGE:
diff --git a/binfilter/bf_xmloff/source/text/xmloff_txtprhdl.cxx b/binfilter/bf_xmloff/source/text/xmloff_txtprhdl.cxx
index d4ca2f4..be36434 100644
--- a/binfilter/bf_xmloff/source/text/xmloff_txtprhdl.cxx
+++ b/binfilter/bf_xmloff/source/text/xmloff_txtprhdl.cxx
@@ -937,7 +937,7 @@ sal_Bool XMLTextEmphasizePropHdl_Impl::exportXML(
{
OUStringBuffer aOut( 15 );
sal_Bool bRet = sal_True;
- sal_Int16 nType;
+ sal_Int16 nType(0);
if( rValue >>= nType )
{
sal_Bool bBelow = sal_False;
@@ -1052,7 +1052,7 @@ sal_Bool XMLTextRelWidthHeightPropHdl_Impl::exportXML(
const SvXMLUnitConverter& rUnitConverter ) const
{
sal_Bool bRet = sal_False;
- sal_Int16 nValue;
+ sal_Int16 nValue(0);
if( (rValue >>= nValue) && nValue > 0 )
{
OUStringBuffer aOut;
@@ -1169,7 +1169,7 @@ sal_Bool XMLTextRotationAnglePropHdl_Impl::exportXML(
const Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const
{
- sal_Int16 nAngle;
+ sal_Int16 nAngle(0);
sal_Bool bRet = ( rValue >>= nAngle );
if( bRet )
{
More information about the Libreoffice-commits
mailing list