[Libreoffice-commits] .: binfilter/bf_forms binfilter/bf_sc binfilter/bf_sch binfilter/bf_sd binfilter/bf_svx binfilter/bf_sw binfilter/bf_xmloff
Christian Lohmaier
cloph at kemper.freedesktop.org
Sun Jan 30 08:54:46 PST 2011
binfilter/bf_forms/source/component/forms_DatabaseForm.cxx | 4 +-
binfilter/bf_sc/source/core/data/sc_attrib.cxx | 2 -
binfilter/bf_sc/source/core/tool/sc_appoptio.cxx | 2 -
binfilter/bf_sc/source/core/tool/sc_docoptio.cxx | 4 +-
binfilter/bf_sc/source/core/tool/sc_inputopt.cxx | 2 -
binfilter/bf_sc/source/core/tool/sc_viewopti.cxx | 2 -
binfilter/bf_sc/source/filter/xml/sc_xmlstyle.cxx | 14 ++++----
binfilter/bf_sc/source/ui/unoobj/sc_afmtuno.cxx | 2 -
binfilter/bf_sc/source/ui/unoobj/sc_cellsuno.cxx | 10 +++---
binfilter/bf_sc/source/ui/unoobj/sc_datauno.cxx | 8 ++---
binfilter/bf_sc/source/ui/unoobj/sc_defltuno.cxx | 4 +-
binfilter/bf_sc/source/ui/unoobj/sc_docuno.cxx | 4 +-
binfilter/bf_sc/source/ui/unoobj/sc_fielduno.cxx | 2 -
binfilter/bf_sc/source/ui/unoobj/sc_linkuno.cxx | 4 +-
binfilter/bf_sc/source/ui/unoobj/sc_miscuno.cxx | 4 +-
binfilter/bf_sc/source/ui/unoobj/sc_optuno.cxx | 8 ++---
binfilter/bf_sc/source/ui/unoobj/sc_styleuno.cxx | 2 -
binfilter/bf_sc/source/ui/view/sc_viewdata.cxx | 2 -
binfilter/bf_sch/source/core/sch_chtmod3d.cxx | 2 -
binfilter/bf_sch/source/ui/unoidl/sch_ChXChartAxis.cxx | 8 ++---
binfilter/bf_sch/source/ui/unoidl/sch_ChXChartObject.cxx | 8 ++---
binfilter/bf_sch/source/ui/unoidl/sch_ChXDataPoint.cxx | 2 -
binfilter/bf_sch/source/ui/unoidl/sch_ChXDataRow.cxx | 2 -
binfilter/bf_sd/source/core/sd_anminfo.cxx | 2 -
binfilter/bf_sd/source/ui/view/sd_frmview.cxx | 14 ++++----
binfilter/bf_svx/source/engine3d/svx_obj3d.cxx | 2 -
binfilter/bf_svx/source/svdraw/svx_svdattr.cxx | 16 +++++-----
binfilter/bf_svx/source/unodraw/svx_XPropertyTable.cxx | 2 -
binfilter/bf_svx/source/unodraw/svx_unonrule.cxx | 16 +++++-----
binfilter/bf_svx/source/unodraw/svx_unopool.cxx | 2 -
binfilter/bf_svx/source/unodraw/svx_unoshap4.cxx | 10 +++---
binfilter/bf_svx/source/unoedit/svx_unotext.cxx | 4 +-
binfilter/bf_svx/source/xoutdev/svx_xattr.cxx | 4 +-
binfilter/bf_svx/source/xoutdev/svx_xattr2.cxx | 2 -
binfilter/bf_sw/source/ui/uno/sw_SwXDocumentSettings.cxx | 12 +++----
binfilter/bf_xmloff/source/chart/xmloff_XMLTextOrientationHdl.cxx | 2 -
binfilter/bf_xmloff/source/core/xmloff_SettingsExportHelper.cxx | 2 -
binfilter/bf_xmloff/source/forms/xmloff_controlpropertyhdl.cxx | 4 +-
binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx | 6 +--
39 files changed, 101 insertions(+), 101 deletions(-)
New commits:
commit d3a8f6260d9fc09a50cbbe5edb242a8e7171f18a
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Sun Jan 30 17:56:14 2011 +0100
WaE fixes (foo may be used uninitialized)
diff --git a/binfilter/bf_forms/source/component/forms_DatabaseForm.cxx b/binfilter/bf_forms/source/component/forms_DatabaseForm.cxx
index 43b8a86..fe36d1e 100644
--- a/binfilter/bf_forms/source/component/forms_DatabaseForm.cxx
+++ b/binfilter/bf_forms/source/component/forms_DatabaseForm.cxx
@@ -790,7 +790,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
{
::rtl::OUString aText;
Any aVal = xComponentSet->getPropertyValue( PROPERTY_DATE );
- sal_Int32 nInt32Val;
+ sal_Int32 nInt32Val = 0;
if (aVal >>= nInt32Val)
{
::Date aDate(nInt32Val);
@@ -813,7 +813,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
{
::rtl::OUString aText;
Any aVal = xComponentSet->getPropertyValue( PROPERTY_TIME );
- sal_Int32 nInt32Val;
+ sal_Int32 nInt32Val = 0;
if (aVal >>= nInt32Val)
{
::Time aTime(nInt32Val);
diff --git a/binfilter/bf_sc/source/core/data/sc_attrib.cxx b/binfilter/bf_sc/source/core/data/sc_attrib.cxx
index 8ebd300..050b851 100644
--- a/binfilter/bf_sc/source/core/data/sc_attrib.cxx
+++ b/binfilter/bf_sc/source/core/data/sc_attrib.cxx
@@ -244,7 +244,7 @@ using namespace ::com::sun::star;
/*N*/ bool ScProtectionAttr::PutValue( const uno::Any& rVal, BYTE nMemberId )
/*N*/ {
/*N*/ bool bRet = false;
-/*N*/ sal_Bool bVal;
+/*N*/ sal_Bool bVal = sal_False;
/*N*/ nMemberId &= ~CONVERT_TWIPS;
/*N*/ switch ( nMemberId )
/*N*/ {
diff --git a/binfilter/bf_sc/source/core/tool/sc_appoptio.cxx b/binfilter/bf_sc/source/core/tool/sc_appoptio.cxx
index fcb7538..0a07874 100644
--- a/binfilter/bf_sc/source/core/tool/sc_appoptio.cxx
+++ b/binfilter/bf_sc/source/core/tool/sc_appoptio.cxx
@@ -462,7 +462,7 @@ using namespace ::com::sun::star::uno;
/*N*/ aSortListItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_SORTLIST )) ),
/*N*/ aMiscItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_MISC )) )
/*N*/ {
-/*N*/ sal_Int32 nIntVal;
+/*N*/ sal_Int32 nIntVal = 0;
/*N*/
/*N*/ Sequence<OUString> aNames;
/*N*/ Sequence<Any> aValues;
diff --git a/binfilter/bf_sc/source/core/tool/sc_docoptio.cxx b/binfilter/bf_sc/source/core/tool/sc_docoptio.cxx
index 19c7b8b..9d70f79 100644
--- a/binfilter/bf_sc/source/core/tool/sc_docoptio.cxx
+++ b/binfilter/bf_sc/source/core/tool/sc_docoptio.cxx
@@ -295,8 +295,8 @@ inline long HMMToTwips(long nHMM) { return (nHMM * 72 + 63) / 127; }
/*N*/ aCalcItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_CALC )) ),
/*N*/ aLayoutItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_DOCLAYOUT )) )
/*N*/ {
-/*N*/ sal_Int32 nIntVal;
-/*N*/ double fDoubleVal;
+/*N*/ sal_Int32 nIntVal = 0;
+/*N*/ double fDoubleVal = 0.0;
/*N*/
/*N*/ Sequence<OUString> aNames;
/*N*/ Sequence<Any> aValues;
diff --git a/binfilter/bf_sc/source/core/tool/sc_inputopt.cxx b/binfilter/bf_sc/source/core/tool/sc_inputopt.cxx
index d96c603..3aa2acf 100644
--- a/binfilter/bf_sc/source/core/tool/sc_inputopt.cxx
+++ b/binfilter/bf_sc/source/core/tool/sc_inputopt.cxx
@@ -202,7 +202,7 @@ using namespace ::com::sun::star::uno;
/*N*/ ScInputCfg::ScInputCfg() :
/*N*/ ConfigItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_INPUT )) )
/*N*/ {
-/*N*/ sal_Int32 nIntVal;
+/*N*/ sal_Int32 nIntVal = 0;
/*N*/
/*N*/ Sequence<OUString> aNames = GetPropertyNames();
/*N*/ Sequence<Any> aValues = GetProperties(aNames);
diff --git a/binfilter/bf_sc/source/core/tool/sc_viewopti.cxx b/binfilter/bf_sc/source/core/tool/sc_viewopti.cxx
index 0eaabdc..7b6a115 100644
--- a/binfilter/bf_sc/source/core/tool/sc_viewopti.cxx
+++ b/binfilter/bf_sc/source/core/tool/sc_viewopti.cxx
@@ -490,7 +490,7 @@ using namespace ::com::sun::star::uno;
/*N*/ aDisplayItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_DISPLAY )) ),
/*N*/ aGridItem( OUString(RTL_CONSTASCII_USTRINGPARAM( CFGPATH_GRID )) )
/*N*/ {
-/*N*/ sal_Int32 nIntVal;
+/*N*/ sal_Int32 nIntVal = 0;
/*N*/
/*N*/ Sequence<OUString> aNames = GetLayoutPropertyNames();
/*N*/ Sequence<Any> aValues = aLayoutItem.GetProperties(aNames);
diff --git a/binfilter/bf_sc/source/filter/xml/sc_xmlstyle.cxx b/binfilter/bf_sc/source/filter/xml/sc_xmlstyle.cxx
index a2e43da..1cd78d2 100644
--- a/binfilter/bf_sc/source/filter/xml/sc_xmlstyle.cxx
+++ b/binfilter/bf_sc/source/filter/xml/sc_xmlstyle.cxx
@@ -188,7 +188,7 @@ void ScXMLCellExportPropertyMapper::ContextFilter(
if (pPadding && pPadding_Bottom && pPadding_Left && pPadding_Right && pPadding_Top)
{
- sal_Int32 nBottom, nTop, nLeft, nRight;
+ sal_Int32 nBottom = 0, nTop = 0, nLeft = 0, nRight = 0;
if ((pPadding_Bottom->maValue >>= nBottom) &&
(pPadding_Left->maValue >>= nLeft) &&
(pPadding_Right->maValue >>= nRight) &&
@@ -386,7 +386,7 @@ void ScXMLAutoStylePoolP::exportStyleAttributes(
{
case CTF_SC_NUMBERFORMAT :
{
- sal_Int32 nNumberFormat;
+ sal_Int32 nNumberFormat = 0;
if (i->maValue >>= nNumberFormat)
{
::rtl::OUString sAttrValue = rScXMLExport.getDataStyleName(nNumberFormat);
@@ -574,7 +574,7 @@ void ScXMLStyleExport::exportStyleAttributes(
xPropState->getPropertyState( sNumberFormat )) )
{
uno::Any aAny = xPropSet->getPropertyValue( sNumberFormat );
- sal_Int32 nNumberFormat;
+ sal_Int32 nNumberFormat = 0;
if (aAny >>= nNumberFormat)
{
::rtl::OUString sDataStyleName = GetExport().getDataStyleName(nNumberFormat);
@@ -1134,7 +1134,7 @@ sal_Bool XmlScPropHdl_RotateAngle::equals(
const ::com::sun::star::uno::Any& r1,
const ::com::sun::star::uno::Any& r2 ) const
{
- sal_Int32 aAngle1, aAngle2;
+ sal_Int32 aAngle1 = 0, aAngle2 = 0;
if((r1 >>= aAngle1) && (r2 >>= aAngle2))
return (aAngle1 == aAngle2);
@@ -1164,7 +1164,7 @@ sal_Bool XmlScPropHdl_RotateAngle::exportXML(
const ::com::sun::star::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const
{
- sal_Int32 nVal;
+ sal_Int32 nVal = 0;
sal_Bool bRetval(sal_False);
if(rValue >>= nVal)
@@ -1376,7 +1376,7 @@ sal_Bool XmlScPropHdl_BreakBefore::equals(
const ::com::sun::star::uno::Any& r1,
const ::com::sun::star::uno::Any& r2 ) const
{
- sal_Bool aBreak1, aBreak2;
+ sal_Bool aBreak1 = sal_False, aBreak2 = sal_False;
if((r1 >>= aBreak1) && (r2 >>= aBreak2))
return (aBreak1 == aBreak2);
@@ -1412,7 +1412,7 @@ sal_Bool XmlScPropHdl_BreakBefore::exportXML(
const ::com::sun::star::uno::Any& rValue,
const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
sal_Bool bRetval(sal_False);
if(rValue >>= bVal)
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_afmtuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_afmtuno.cxx
index 8954a2f..73603c1 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_afmtuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_afmtuno.cxx
@@ -619,7 +619,7 @@ void SAL_CALL ScAutoFormatObj::setPropertyValue(
DBG_ASSERT(pData,"AutoFormat Daten nicht da");
String aPropString = aPropertyName;
- sal_Bool bBool;
+ sal_Bool bBool = sal_False;
if (aPropString.EqualsAscii( SC_UNONAME_INCBACK ) && (aValue >>= bBool))
pData->SetIncludeBackground( bBool );
else if (aPropString.EqualsAscii( SC_UNONAME_INCBORD ) && (aValue >>= bBool))
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_cellsuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_cellsuno.cxx
index 7207048..4663b6f 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_cellsuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_cellsuno.cxx
@@ -1886,7 +1886,7 @@ void lcl_SetCellProperty( const SfxItemPropertyMap& rMap, const uno::Any& rValue
LanguageType eOldLang = ((const SvxLanguageItem&)rSet.Get( ATTR_LANGUAGE_FORMAT )).GetLanguage();
nOldFormat = pFormatter->GetFormatForLanguageIfBuiltIn( nOldFormat, eOldLang );
- sal_Int32 nIntVal;
+ sal_Int32 nIntVal = 0;
if ( rValue >>= nIntVal )
{
ULONG nNewFormat = (ULONG)nIntVal;
@@ -1915,14 +1915,14 @@ void lcl_SetCellProperty( const SfxItemPropertyMap& rMap, const uno::Any& rValue
break;
case ATTR_INDENT:
{
- sal_Int16 nIntVal;
+ sal_Int16 nIntVal = 0;
if ( rValue >>= nIntVal )
rSet.Put( SfxUInt16Item( rMap.nWID, (USHORT)HMMToTwips(nIntVal) ) );
}
break;
case ATTR_ROTATE_VALUE:
{
- sal_Int32 nRotVal;
+ sal_Int32 nRotVal = 0;
if ( rValue >>= nRotVal )
{
// stored value is always between 0 and 360 deg.
@@ -7486,7 +7486,7 @@ void ScTableColumnObj::SetOnePropertyValue( const SfxItemPropertyMap* pMap, cons
if ( pMap->nWID == SC_WID_UNO_CELLWID )
{
- sal_Int32 nNewWidth;
+ sal_Int32 nNewWidth = 0;
if ( aValue >>= nNewWidth )
{
// property is 1/100mm, column width is twips
@@ -7627,7 +7627,7 @@ void ScTableRowObj::SetOnePropertyValue( const SfxItemPropertyMap* pMap, const u
if ( pMap->nWID == SC_WID_UNO_CELLHGT )
{
- sal_Int32 nNewHeight;
+ sal_Int32 nNewHeight = 0;
if ( aValue >>= nNewHeight )
{
// property is 1/100mm, row height is twips
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_datauno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_datauno.cxx
index d677c1c..e0da9eb 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_datauno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_datauno.cxx
@@ -449,7 +449,7 @@ void ScSortDescriptor::FillSortParam( ScSortParam& rParam, const uno::Sequence<b
rParam.bUserDef = ScUnoHelpFunctions::GetBoolFromAny( rProp.Value );
else if (aPropName.EqualsAscii( SC_UNONAME_UINDEX ))
{
- sal_Int32 nVal;
+ sal_Int32 nVal = 0;
if ( rProp.Value >>= nVal )
rParam.nUserIndex = (USHORT)nVal;
}
@@ -727,13 +727,13 @@ void SAL_CALL ScSubTotalDescriptorBase::setPropertyValue(
aParam.bUserDef = ScUnoHelpFunctions::GetBoolFromAny( aValue );
else if (aString.EqualsAscii( SC_UNONAME_UINDEX ) || aString.EqualsAscii( SC_UNONAME_USINDEX ))
{
- sal_Int32 nVal;
+ sal_Int32 nVal = 0;
if ( aValue >>= nVal )
aParam.nUserIndex = (USHORT)nVal;
}
else if (aString.EqualsAscii( SC_UNONAME_MAXFLD ))
{
- sal_Int32 nVal;
+ sal_Int32 nVal = 0;
if ( (aValue >>= nVal) && nVal > MAXSUBTOTAL )
{
throw lang::IllegalArgumentException();
@@ -1215,7 +1215,7 @@ void SAL_CALL ScFilterDescriptorBase::setPropertyValue(
aParam.bCaseSens = ScUnoHelpFunctions::GetBoolFromAny( aValue );
else if (aString.EqualsAscii( SC_UNONAME_MAXFLD ))
{
- sal_Int32 nVal;
+ sal_Int32 nVal = 0;
if ( (aValue >>= nVal) && nVal > MAXQUERY )
{
throw lang::IllegalArgumentException();
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_defltuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_defltuno.cxx
index db65b5e..d22b1f2 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_defltuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_defltuno.cxx
@@ -152,7 +152,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyValue(
if (pDoc)
{
ScDocOptions aDocOpt(pDoc->GetDocOptions());
- sal_Int16 nValue;
+ sal_Int16 nValue = 0;
if (aValue >>= nValue)
{
aDocOpt.SetStdPrecision(static_cast<sal_uInt8> (nValue));
@@ -168,7 +168,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyValue(
if (pDoc)
{
ScDocOptions aDocOpt(pDoc->GetDocOptions());
- sal_Int32 nValue;
+ sal_Int32 nValue = 0;
if (aValue >>= nValue)
{
aDocOpt.SetTabDistance(static_cast<sal_uInt16>(HMMToTwips(nValue)));
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_docuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_docuno.cxx
index 0b60ff0..37cfbb4 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_docuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_docuno.cxx
@@ -1770,7 +1770,7 @@ void SAL_CALL ScTableColumnsObj::setPropertyValue(
if ( aNameString.EqualsAscii( SC_UNONAME_CELLWID ) )
{
- sal_Int32 nNewWidth;
+ sal_Int32 nNewWidth = 0;
if ( aValue >>= nNewWidth )
aFunc.SetWidthOrHeight( TRUE, 1, nColArr, nTab, SC_SIZE_ORIGINAL,
(USHORT)HMMToTwips(nNewWidth), TRUE, TRUE );
@@ -1985,7 +1985,7 @@ void SAL_CALL ScTableRowsObj::setPropertyValue(
if ( aNameString.EqualsAscii( SC_UNONAME_CELLHGT ) )
{
- sal_Int32 nNewHeight;
+ sal_Int32 nNewHeight = 0;
if ( aValue >>= nNewHeight )
aFunc.SetWidthOrHeight( FALSE, 1, nRowArr, nTab, SC_SIZE_ORIGINAL,
(USHORT)HMMToTwips(nNewHeight), TRUE, TRUE );
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_fielduno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_fielduno.cxx
index 2d81fa6..e59b4de 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_fielduno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_fielduno.cxx
@@ -1372,7 +1372,7 @@ void SAL_CALL ScHeaderFieldObj::setPropertyValue(
String aNameString = aPropertyName;
if ( nType == SC_SERVICE_FILEFIELD && aNameString.EqualsAscii( SC_UNONAME_FILEFORM ) )
{
- sal_Int16 nIntVal;
+ sal_Int16 nIntVal = 0;
if ( aValue >>= nIntVal )
{
SvxFileFormat eFormat = lcl_UnoToSvxFileFormat( nIntVal );
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_linkuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_linkuno.cxx
index cd3af23..b97d58b 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_linkuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_linkuno.cxx
@@ -235,7 +235,7 @@ void SAL_CALL ScSheetLinkObj::setPropertyValue(
}
else if ( aNameString.EqualsAscii( SC_UNONAME_REFDELAY ) )
{
- sal_Int32 nRefresh;
+ sal_Int32 nRefresh = 0;
if ( aValue >>= nRefresh )
setRefreshDelay( nRefresh );
}
@@ -772,7 +772,7 @@ void SAL_CALL ScAreaLinkObj::setPropertyValue(
}
else if ( aNameString.EqualsAscii( SC_UNONAME_REFDELAY ) )
{
- sal_Int32 nRefresh;
+ sal_Int32 nRefresh = 0;
if ( aValue >>= nRefresh )
setRefreshDelay( nRefresh );
}
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_miscuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_miscuno.cxx
index 6390176..fd0031c 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_miscuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_miscuno.cxx
@@ -147,7 +147,7 @@ sal_Bool ScUnoHelpFunctions::GetBoolFromAny( const uno::Any& aAny )
// static
sal_Int16 ScUnoHelpFunctions::GetInt16FromAny( const uno::Any& aAny )
{
- sal_Int16 nRet;
+ sal_Int16 nRet = 0;
if ( aAny >>= nRet )
return nRet;
return 0;
@@ -156,7 +156,7 @@ sal_Int16 ScUnoHelpFunctions::GetInt16FromAny( const uno::Any& aAny )
// static
sal_Int32 ScUnoHelpFunctions::GetInt32FromAny( const uno::Any& aAny )
{
- sal_Int32 nRet;
+ sal_Int32 nRet = 0;
if ( aAny >>= nRet )
return nRet;
return 0;
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_optuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_optuno.cxx
index 07f18c4..004cdc0 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_optuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_optuno.cxx
@@ -90,25 +90,25 @@ sal_Bool ScDocOptionsHelper::setPropertyValue( ScDocOptions& rOptions,
rOptions.SetAutoSpell( ScUnoHelpFunctions::GetBoolFromAny( aValue ) );
else if ( aString.EqualsAscii( SC_UNO_DEFTABSTOP ) )
{
- sal_Int16 nIntVal;
+ sal_Int16 nIntVal = 0;
if ( aValue >>= nIntVal )
rOptions.SetTabDistance( nIntVal );
}
else if ( aString.EqualsAscii( SC_UNO_ITERCOUNT ) )
{
- sal_Int32 nIntVal;
+ sal_Int32 nIntVal = 0;
if ( aValue >>= nIntVal )
rOptions.SetIterCount( (USHORT)nIntVal );
}
else if ( aString.EqualsAscii( SC_UNO_STANDARDDEC ) )
{
- sal_Int16 nIntVal;
+ sal_Int16 nIntVal = 0;
if ( aValue >>= nIntVal )
rOptions.SetStdPrecision( nIntVal );
}
else if ( aString.EqualsAscii( SC_UNO_ITEREPSILON ) )
{
- double fDoubleVal;
+ double fDoubleVal = 0.0;
if ( aValue >>= fDoubleVal )
rOptions.SetIterEps( fDoubleVal );
}
diff --git a/binfilter/bf_sc/source/ui/unoobj/sc_styleuno.cxx b/binfilter/bf_sc/source/ui/unoobj/sc_styleuno.cxx
index 1a0cdf7..c975e79 100644
--- a/binfilter/bf_sc/source/ui/unoobj/sc_styleuno.cxx
+++ b/binfilter/bf_sc/source/ui/unoobj/sc_styleuno.cxx
@@ -1622,7 +1622,7 @@ void ScStyleObj::SetOnePropertyValue( const SfxItemPropertyMap* pMap, const uno:
break;
case ATTR_ROTATE_VALUE:
{
- sal_Int32 nRotVal;
+ sal_Int32 nRotVal = 0;
if ( *pValue >>= nRotVal )
{
// stored value is always between 0 and 360 deg.
diff --git a/binfilter/bf_sc/source/ui/view/sc_viewdata.cxx b/binfilter/bf_sc/source/ui/view/sc_viewdata.cxx
index c7d0259..f3f40fd 100644
--- a/binfilter/bf_sc/source/ui/view/sc_viewdata.cxx
+++ b/binfilter/bf_sc/source/ui/view/sc_viewdata.cxx
@@ -773,7 +773,7 @@ void ScViewData::ReadUserDataSequence(const uno::Sequence <beans::PropertyValue>
pOptions->SetOption(VOPT_GRID, ScUnoHelpFunctions::GetBoolFromAny( rSettings[i].Value ) );
else if ( sName.compareToAscii( SC_UNO_GRIDCOLOR ) == 0 )
{
- sal_Int64 nColor;
+ sal_Int64 nColor = 0;
if (rSettings[i].Value >>= nColor)
{
String aColorName;
diff --git a/binfilter/bf_sch/source/core/sch_chtmod3d.cxx b/binfilter/bf_sch/source/core/sch_chtmod3d.cxx
index fdad4e7..92b0b7a 100644
--- a/binfilter/bf_sch/source/core/sch_chtmod3d.cxx
+++ b/binfilter/bf_sch/source/core/sch_chtmod3d.cxx
@@ -1432,7 +1432,7 @@ namespace binfilter {
/*N*/ double fPreBottom=fOriginY;
/*N*/ double fPreTop =fOriginY;
/*N*/ double fPreTopPos,fPreBottomPos,fPreOriPos;
-/*N*/ double fTop,fBottom,fMin,fMax,fMin2,fMax2;
+/*N*/ double fTop=0.0,fBottom=0.0,fMin=0.0,fMax=0.0,fMin2,fMax2;
/*N*/ fMin2=fMax2=fOriginY;
/*N*/
/*N*/ for (nRow = 0; nRow < nRowCnt; nRow++)
diff --git a/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartAxis.cxx b/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartAxis.cxx
index 55ba5a5..7da38ee 100644
--- a/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartAxis.cxx
+++ b/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartAxis.cxx
@@ -385,7 +385,7 @@ void SAL_CALL ChXChartAxis::setPropertyValue( const ::rtl::OUString& aPropertyNa
if( ! ( aValue >>= eArrOrder ))
{
// basic might give us an int instead of the enum type
- sal_Int32 nIntVal;
+ sal_Int32 nIntVal = 0;
if( aValue >>= nIntVal )
{
eArrOrder = SAL_STATIC_CAST( chart::ChartAxisArrangeOrderType, nIntVal );
@@ -408,7 +408,7 @@ void SAL_CALL ChXChartAxis::setPropertyValue( const ::rtl::OUString& aPropertyNa
break;
case SCHATTR_TEXT_ORIENT:
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
if( aValue >>= bVal )
{
pSet->Put( SvxChartTextOrientItem(
@@ -623,7 +623,7 @@ void SAL_CALL ChXChartAxis::setPropertyValues (
if ( ! ( *pValue >>= eArrOrder ))
{
// basic might give us an int instead of the enum type
- sal_Int32 nIntVal;
+ sal_Int32 nIntVal = 0;
if( *pValue >>= nIntVal )
eArrOrder = SAL_STATIC_CAST (chart::ChartAxisArrangeOrderType, nIntVal);
}
@@ -649,7 +649,7 @@ void SAL_CALL ChXChartAxis::setPropertyValues (
case SCHATTR_TEXT_ORIENT:
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
if( *pValue >>= bVal )
{
aAttributes.Put( SvxChartTextOrientItem(
diff --git a/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartObject.cxx b/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartObject.cxx
index 5a34dda..3d412e6 100644
--- a/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartObject.cxx
+++ b/binfilter/bf_sch/source/ui/unoidl/sch_ChXChartObject.cxx
@@ -336,7 +336,7 @@ void SAL_CALL ChXChartObject::setPropertyValue( const ::rtl::OUString& aProperty
case SCHATTR_TEXT_ORIENT:
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
if( aValue >>= bVal )
{
pSet->Put( SvxChartTextOrientItem(
@@ -353,7 +353,7 @@ void SAL_CALL ChXChartObject::setPropertyValue( const ::rtl::OUString& aProperty
drawing::BitmapMode eMode;
if(!(aValue >>= eMode) )
{
- sal_Int32 nMode;
+ sal_Int32 nMode = 0;
if(!(aValue >>= nMode))
break;
@@ -743,7 +743,7 @@ void SAL_CALL ChXChartObject::setPropertyValues (
case SCHATTR_TEXT_ORIENT:
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
if( *pValue >>= bVal )
{
aModifications.Put( SvxChartTextOrientItem(
@@ -759,7 +759,7 @@ void SAL_CALL ChXChartObject::setPropertyValues (
drawing::BitmapMode eMode;
if ( ! (*pValue >>= eMode))
{
- sal_Int32 nMode;
+ sal_Int32 nMode = 0;
if ( ! (*pValue >>= nMode))
break;
eMode = (drawing::BitmapMode)nMode;
diff --git a/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataPoint.cxx b/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataPoint.cxx
index 68f97af..2e104fd 100644
--- a/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataPoint.cxx
+++ b/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataPoint.cxx
@@ -181,7 +181,7 @@ void SAL_CALL ChXDataPoint::setPropertyValue( const ::rtl::OUString& aPropertyNa
drawing::BitmapMode eMode;
if(!(aValue >>= eMode) )
{
- sal_Int32 nMode;
+ sal_Int32 nMode = 0;
if(!(aValue >>= nMode))
break;
diff --git a/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataRow.cxx b/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataRow.cxx
index 905f2fd..3820d3c 100644
--- a/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataRow.cxx
+++ b/binfilter/bf_sch/source/ui/unoidl/sch_ChXDataRow.cxx
@@ -186,7 +186,7 @@ void SAL_CALL ChXDataRow::setPropertyValue( const ::rtl::OUString& aPropertyName
drawing::BitmapMode eMode;
if(!(aValue >>= eMode) )
{
- sal_Int32 nMode;
+ sal_Int32 nMode = 0;
if(!(aValue >>= nMode))
break;
diff --git a/binfilter/bf_sd/source/core/sd_anminfo.cxx b/binfilter/bf_sd/source/core/sd_anminfo.cxx
index 0660fe2..d8b63f6 100644
--- a/binfilter/bf_sd/source/core/sd_anminfo.cxx
+++ b/binfilter/bf_sd/source/core/sd_anminfo.cxx
@@ -273,7 +273,7 @@ using namespace ::com::sun::star;
/*N*/ rIn >> aBlueScreen;
/*N*/ rIn >> aDimColor;
/*N*/
-/*N*/ rtl_TextEncoding eTextEnc;
+/*N*/ rtl_TextEncoding eTextEnc = RTL_TEXTENCODING_DONTKNOW;
/*N*/
/*N*/ // ab hier werden Daten der Versionen > 0 eingelesen
/*N*/ if (aIO.GetVersion() > 0)
diff --git a/binfilter/bf_sd/source/ui/view/sd_frmview.cxx b/binfilter/bf_sd/source/ui/view/sd_frmview.cxx
index c1a4d69..d22a23e 100644
--- a/binfilter/bf_sd/source/ui/view/sd_frmview.cxx
+++ b/binfilter/bf_sd/source/ui/view/sd_frmview.cxx
@@ -537,9 +537,9 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com:
/*?*/ const sal_Int32 nLength = rSequence.getLength();
if (nLength)
{
- sal_Bool bBool;
- sal_Int32 nInt32;
- sal_Int16 nInt16;
+ sal_Bool bBool = sal_False;
+ sal_Int32 nInt32 = 0;
+ sal_Int16 nInt16 = 0;
::rtl::OUString aString;
sal_Int32 aSnapGridWidthXNum = GetSnapGridWidthX().GetNumerator();
@@ -674,7 +674,7 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com:
}
else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaTop ) ) )
{
- sal_Int32 nTop;
+ sal_Int32 nTop = 0;
if( pValue->Value >>= nTop )
{
Rectangle aLclVisArea( GetVisArea() );
@@ -685,7 +685,7 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com:
}
else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaLeft ) ) )
{
- sal_Int32 nLeft;
+ sal_Int32 nLeft = 0;
if( pValue->Value >>= nLeft )
{
Rectangle aLclVisArea( GetVisArea() );
@@ -696,7 +696,7 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com:
}
else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaWidth ) ) )
{
- sal_Int32 nWidth;
+ sal_Int32 nWidth = 0;
if( pValue->Value >>= nWidth )
{
Rectangle aLclVisArea( GetVisArea() );
@@ -706,7 +706,7 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com:
}
else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaHeight ) ) )
{
- sal_Int32 nHeight;
+ sal_Int32 nHeight = 0;
if( pValue->Value >>= nHeight )
{
Rectangle aLclVisArea( GetVisArea() );
diff --git a/binfilter/bf_svx/source/engine3d/svx_obj3d.cxx b/binfilter/bf_svx/source/engine3d/svx_obj3d.cxx
index ecece77..bb1e1bc 100644
--- a/binfilter/bf_svx/source/engine3d/svx_obj3d.cxx
+++ b/binfilter/bf_svx/source/engine3d/svx_obj3d.cxx
@@ -2574,7 +2574,7 @@ namespace binfilter {
/*N*/ // Mit Scraegen, Vorderseite
/*N*/ PolyPolygon3D aLocalFront = rFront;
/*N*/ PolyPolygon3D aLocalBack = rBack;
-/*N*/ double fExtrudeDepth, fDiagLen;
+/*N*/ double fExtrudeDepth, fDiagLen = 0.0;
/*N*/ double fTexMidStart = fTextureStart;
/*N*/ double fTexMidDepth = fTextureDepth;
/*N*/
diff --git a/binfilter/bf_svx/source/svdraw/svx_svdattr.cxx b/binfilter/bf_svx/source/svdraw/svx_svdattr.cxx
index bbdce06..810ad0e 100644
--- a/binfilter/bf_svx/source/svdraw/svx_svdattr.cxx
+++ b/binfilter/bf_svx/source/svdraw/svx_svdattr.cxx
@@ -763,7 +763,7 @@ bool SdrTextFitToSizeTypeItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*
drawing::TextFitToSizeType eFS;
if(!(rVal >>= eFS))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -796,7 +796,7 @@ bool SdrTextVertAdjustItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
drawing::TextVerticalAdjust eAdj;
if(!(rVal >>= eAdj))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -832,7 +832,7 @@ bool SdrTextHorzAdjustItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
drawing::TextHorizontalAdjust eAdj;
if(!(rVal >>= eAdj))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -865,7 +865,7 @@ bool SdrTextAniKindItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
drawing::TextAnimationKind eKind;
if(!(rVal >>= eKind))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
eKind = (drawing::TextAnimationKind)nEnum;
@@ -897,7 +897,7 @@ bool SdrTextAniDirectionItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/
drawing::TextAnimationDirection eDir;
if(!(rVal >>= eDir))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -1069,7 +1069,7 @@ bool SdrEdgeKindItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
drawing::ConnectorType eCT;
if(!(rVal >>= eCT))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -1198,7 +1198,7 @@ bool SdrCircKindItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
drawing::CircleKind eKind;
if(!(rVal >>= eKind))
{
- sal_Int32 nEnum;
+ sal_Int32 nEnum = 0;
if(!(rVal >>= nEnum))
return false;
@@ -1366,7 +1366,7 @@ bool SdrGrafGamma100Item::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/ ) const
bool SdrGrafGamma100Item::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
{
- double nGamma;
+ double nGamma = 0.0;
if(!(rVal >>= nGamma))
return false;
diff --git a/binfilter/bf_svx/source/unodraw/svx_XPropertyTable.cxx b/binfilter/bf_svx/source/unodraw/svx_XPropertyTable.cxx
index 7c82ee9..58b14e4 100644
--- a/binfilter/bf_svx/source/unodraw/svx_XPropertyTable.cxx
+++ b/binfilter/bf_svx/source/unodraw/svx_XPropertyTable.cxx
@@ -332,7 +332,7 @@ Any SvxUnoXColorTable::getAny( const XPropertyEntry* pEntry ) const throw()
XPropertyEntry* SvxUnoXColorTable::getEntry( const OUString& rName, const Any& rAny ) const throw()
{
- sal_Int32 nColor;
+ sal_Int32 nColor = 0;
if( !(rAny >>= nColor) )
return NULL;
diff --git a/binfilter/bf_svx/source/unodraw/svx_unonrule.cxx b/binfilter/bf_svx/source/unodraw/svx_unonrule.cxx
index 9a9556a..752a892 100644
--- a/binfilter/bf_svx/source/unodraw/svx_unonrule.cxx
+++ b/binfilter/bf_svx/source/unodraw/svx_unonrule.cxx
@@ -329,7 +329,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_BULLETID)))
{
- sal_Int16 nSet;
+ sal_Int16 nSet = 0;
if( aVal >>= nSet )
{
if(nSet < 0x100)
@@ -357,7 +357,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_ADJUST)))
{
- sal_Int16 nAdjust;
+ sal_Int16 nAdjust = 0;
if( aVal >>= nAdjust )
{
aFmt.SetNumAdjust(ConvertUnoAdjust( (unsigned short)nAdjust ));
@@ -408,7 +408,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_START_WITH)))
{
- sal_Int16 nStart;
+ sal_Int16 nStart = 0;
if( aVal >>= nStart )
{
aFmt.SetStart( nStart );
@@ -417,7 +417,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_LEFT_MARGIN)))
{
- sal_Int32 nMargin;
+ sal_Int32 nMargin = 0;
if( aVal >>= nMargin )
{
aFmt.SetAbsLSpace((sal_uInt16)nMargin);
@@ -426,7 +426,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_FIRST_LINE_OFFSET)))
{
- sal_Int32 nMargin;
+ sal_Int32 nMargin = 0;
if( aVal >>= nMargin )
{
aFmt.SetFirstLineOffset((sal_uInt16)nMargin);
@@ -435,7 +435,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("SymbolTextDistance")))
{
- sal_Int32 nTextDistance;
+ sal_Int32 nTextDistance = 0;
if( aVal >>= nTextDistance )
{
aFmt.SetCharTextDistance((sal_uInt16)nTextDistance);
@@ -444,7 +444,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_BULLET_COLOR)))
{
- sal_Int32 nColor;
+ sal_Int32 nColor = 0;
if( aVal >>= nColor )
{
aFmt.SetBulletColor( (Color) nColor );
@@ -453,7 +453,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const uno::Sequence< beans::
}
else if(rPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_NAME_NRULE_BULLET_RELSIZE)))
{
- sal_Int16 nSize;
+ sal_Int16 nSize = 0;
if( aVal >>= nSize )
{
aFmt.SetBulletRelSize( (short)nSize );
diff --git a/binfilter/bf_svx/source/unodraw/svx_unopool.cxx b/binfilter/bf_svx/source/unodraw/svx_unopool.cxx
index 9472329..55bec31 100644
--- a/binfilter/bf_svx/source/unodraw/svx_unopool.cxx
+++ b/binfilter/bf_svx/source/unodraw/svx_unopool.cxx
@@ -171,7 +171,7 @@ void SvxUnoDrawPool::putAny( SfxItemPool* pPool, const comphelper::PropertyMapEn
drawing::BitmapMode eMode;
if(!(aValue >>= eMode) )
{
- sal_Int32 nMode;
+ sal_Int32 nMode = 0;
if(!(aValue >>= nMode))
throw IllegalArgumentException();
diff --git a/binfilter/bf_svx/source/unodraw/svx_unoshap4.cxx b/binfilter/bf_svx/source/unodraw/svx_unoshap4.cxx
index ce57fbb..e4c2f8d 100644
--- a/binfilter/bf_svx/source/unodraw/svx_unoshap4.cxx
+++ b/binfilter/bf_svx/source/unodraw/svx_unoshap4.cxx
@@ -455,7 +455,7 @@ void SAL_CALL SvxAppletShape::setPropertyValue( const OUString& aPropertyName, c
break;
case OWN_ATTR_APPLET_ISSCRIPT:
{
- sal_Bool bScript;
+ sal_Bool bScript = sal_False;
if( aValue >>= bScript )
{
xApplet->SetMayScript( bScript );
@@ -752,7 +752,7 @@ void SAL_CALL SvxFrameShape::setPropertyValue( const OUString& aPropertyName, co
break;
case OWN_ATTR_FRAME_ISAUTOSCROLL:
{
- sal_Bool bScroll;
+ sal_Bool bScroll = sal_False;;
if( !aValue.hasValue() )
{
pDescriptor->SetScrollingMode( ScrollingAuto );
@@ -769,7 +769,7 @@ void SAL_CALL SvxFrameShape::setPropertyValue( const OUString& aPropertyName, co
break;
case OWN_ATTR_FRAME_ISBORDER:
{
- sal_Bool bBorder;
+ sal_Bool bBorder = sal_False;
if( aValue >>= bBorder )
{
pDescriptor->SetFrameBorder( bBorder );
@@ -781,7 +781,7 @@ void SAL_CALL SvxFrameShape::setPropertyValue( const OUString& aPropertyName, co
case OWN_ATTR_FRAME_MARGIN_WIDTH:
{
- sal_Int32 nMargin;
+ sal_Int32 nMargin = 0;
if( aValue >>= nMargin )
{
const Size aNewMargin( nMargin, pDescriptor->GetMargin().Height() );
@@ -793,7 +793,7 @@ void SAL_CALL SvxFrameShape::setPropertyValue( const OUString& aPropertyName, co
break;
case OWN_ATTR_FRAME_MARGIN_HEIGHT:
{
- sal_Int32 nMargin;
+ sal_Int32 nMargin = 0;
if( aValue >>= nMargin )
{
const Size aNewMargin( pDescriptor->GetMargin().Width(), nMargin );
diff --git a/binfilter/bf_svx/source/unoedit/svx_unotext.cxx b/binfilter/bf_svx/source/unoedit/svx_unotext.cxx
index fcadd8d..4e2246d 100644
--- a/binfilter/bf_svx/source/unoedit/svx_unotext.cxx
+++ b/binfilter/bf_svx/source/unoedit/svx_unotext.cxx
@@ -480,7 +480,7 @@ sal_Bool SvxUnoTextRangeBase::SetPropertyValueHelper( const SfxItemSet& /*rOldSe
SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL;
if(pForwarder && pSelection)
{
- sal_Int16 nLevel;
+ sal_Int16 nLevel = 0;
if( aValue >>= nLevel )
{
// #101004# Call interface method instead of unsafe cast
@@ -494,7 +494,7 @@ sal_Bool SvxUnoTextRangeBase::SetPropertyValueHelper( const SfxItemSet& /*rOldSe
break;
case EE_PARA_BULLETSTATE:
{
- sal_Bool bBullet;
+ sal_Bool bBullet = sal_False;
if( aValue >>= bBullet )
{
SfxUInt16Item aItem( EE_PARA_BULLETSTATE, bBullet );
diff --git a/binfilter/bf_svx/source/xoutdev/svx_xattr.cxx b/binfilter/bf_svx/source/xoutdev/svx_xattr.cxx
index 6c776ce..118ded3 100644
--- a/binfilter/bf_svx/source/xoutdev/svx_xattr.cxx
+++ b/binfilter/bf_svx/source/xoutdev/svx_xattr.cxx
@@ -484,7 +484,7 @@ XubString aNameOrIndexEmptyString;
/*N*/ if(!(rVal >>= eLS ))
/*N*/ {
/*?*/ // also try an int (for Basic)
-/*?*/ sal_Int32 nLS;
+/*?*/ sal_Int32 nLS = 0;
/*?*/ if(!(rVal >>= nLS))
/*?*/ return sal_False;
/*?*/ eLS = (::com::sun::star::drawing::LineStyle)nLS;
@@ -2206,7 +2206,7 @@ XubString aNameOrIndexEmptyString;
/*N*/ if(!(rVal >>= eFS))
/*N*/ {
/*?*/ // also try an int (for Basic)
-/*?*/ sal_Int32 nFS;
+/*?*/ sal_Int32 nFS = 0;
/*?*/ if(!(rVal >>= nFS))
/*?*/ return false;
/*?*/ eFS = (::com::sun::star::drawing::FillStyle)nFS;
diff --git a/binfilter/bf_svx/source/xoutdev/svx_xattr2.cxx b/binfilter/bf_svx/source/xoutdev/svx_xattr2.cxx
index 823c75d..a5263ef 100644
--- a/binfilter/bf_svx/source/xoutdev/svx_xattr2.cxx
+++ b/binfilter/bf_svx/source/xoutdev/svx_xattr2.cxx
@@ -198,7 +198,7 @@ namespace binfilter {
/*N*/ if(!(rVal >>= eUnoJoint))
/*N*/ {
/*?*/ // also try an int (for Basic)
-/*?*/ sal_Int32 nLJ;
+/*?*/ sal_Int32 nLJ = 0;
/*?*/ if(!(rVal >>= nLJ))
/*?*/ return sal_False;
/*?*/ eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
diff --git a/binfilter/bf_sw/source/ui/uno/sw_SwXDocumentSettings.cxx b/binfilter/bf_sw/source/ui/uno/sw_SwXDocumentSettings.cxx
index 0dc5215..3507e2e 100644
--- a/binfilter/bf_sw/source/ui/uno/sw_SwXDocumentSettings.cxx
+++ b/binfilter/bf_sw/source/ui/uno/sw_SwXDocumentSettings.cxx
@@ -253,7 +253,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
break;
case HANDLE_LINK_UPDATE_MODE:
{
- sal_Int16 nMode;
+ sal_Int16 nMode = 0;
rValue >>= nMode;
switch (nMode)
{
@@ -287,14 +287,14 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
break;
case HANDLE_ADD_PARA_TABLE_SPACING:
{
- sal_Bool bParaSpace;
+ sal_Bool bParaSpace = sal_False;
rValue >>= bParaSpace;
mpDoc->SetParaSpaceMax( bParaSpace, mpDoc->IsParaSpaceMaxAtPages());
}
break;
case HANDLE_ADD_PARA_TABLE_SPACING_AT_START:
{
- sal_Bool bParaSpacePage;
+ sal_Bool bParaSpacePage = sal_False;
rValue >>= bParaSpacePage;
mpDoc->SetParaSpaceMax( mpDoc->IsParaSpaceMax(), bParaSpacePage);
}
@@ -375,7 +375,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
break;
case HANDLE_CHARACTER_COMPRESSION_TYPE:
{
- sal_Int16 nMode;
+ sal_Int16 nMode = 0;
rValue >>= nMode;
switch (nMode)
{
@@ -438,14 +438,14 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
break;
case HANDLE_PRINTER_INDEPENDENT_LAYOUT:
{
- sal_Int16 nTmp;
+ sal_Int16 nTmp = 0;
rValue >>= nTmp;
mpDoc->SetUseVirtualDevice( nTmp != document::PrinterIndependentLayout::DISABLED );
}
break;
case HANDLE_IS_LABEL_DOC :
{
- sal_Bool bSet;
+ sal_Bool bSet = sal_False;
if(!(rValue >>= bSet))
throw IllegalArgumentException();
mpDoc->SetLabelDoc(bSet);
diff --git a/binfilter/bf_xmloff/source/chart/xmloff_XMLTextOrientationHdl.cxx b/binfilter/bf_xmloff/source/chart/xmloff_XMLTextOrientationHdl.cxx
index 8e92728..dbe0435 100644
--- a/binfilter/bf_xmloff/source/chart/xmloff_XMLTextOrientationHdl.cxx
+++ b/binfilter/bf_xmloff/source/chart/xmloff_XMLTextOrientationHdl.cxx
@@ -63,7 +63,7 @@ sal_Bool XMLTextOrientationHdl::exportXML(
const ::com::sun::star::uno::Any& rValue,
const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
- sal_Bool bVal;
+ sal_Bool bVal = sal_False;
sal_Bool bRetval( sal_False );
if( rValue >>= bVal )
diff --git a/binfilter/bf_xmloff/source/core/xmloff_SettingsExportHelper.cxx b/binfilter/bf_xmloff/source/core/xmloff_SettingsExportHelper.cxx
index 512ac99..83bade1 100644
--- a/binfilter/bf_xmloff/source/core/xmloff_SettingsExportHelper.cxx
+++ b/binfilter/bf_xmloff/source/core/xmloff_SettingsExportHelper.cxx
@@ -500,7 +500,7 @@ void lcl_manipulateSetting(
if( rName.equalsAsciiL(
RTL_CONSTASCII_STRINGPARAM( "PrinterIndependentLayout" ) ) )
{
- sal_Int16 nTmp;
+ sal_Int16 nTmp = 0;
if( rAny >>= nTmp )
{
if( nTmp == document::PrinterIndependentLayout::LOW_RESOLUTION )
diff --git a/binfilter/bf_xmloff/source/forms/xmloff_controlpropertyhdl.cxx b/binfilter/bf_xmloff/source/forms/xmloff_controlpropertyhdl.cxx
index 2a9ab41..550abd1 100644
--- a/binfilter/bf_xmloff/source/forms/xmloff_controlpropertyhdl.cxx
+++ b/binfilter/bf_xmloff/source/forms/xmloff_controlpropertyhdl.cxx
@@ -131,7 +131,7 @@ namespace xmloff
{
::rtl::OUStringBuffer aReturn;
sal_Bool bSuccess = sal_False;
- sal_Int16 nFontEmphasis;
+ sal_Int16 nFontEmphasis = 0;
if (_rValue >>= nFontEmphasis)
{
// the type
@@ -307,7 +307,7 @@ namespace xmloff
//---------------------------------------------------------------------
sal_Bool ORotationAngleHandler::exportXML( ::rtl::OUString& _rStrExpValue, const Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const
{
- float fAngle;
+ float fAngle = 0.0;
sal_Bool bSuccess = sal_False;
if ((bSuccess = (_rValue >>= fAngle)))
diff --git a/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx b/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx
index 814248e..66c5e52 100644
--- a/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx
+++ b/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx
@@ -336,7 +336,7 @@ void SfxXMLMetaExport::Export()
// editing cycles
aPropVal = xInfoProp->getPropertyValue(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PROP_EDITINGCYCLES)) );
- sal_Int32 nCycles;
+ sal_Int32 nCycles = 0;
if ( aPropVal >>= nCycles )
{
sValue = ::rtl::OUString::valueOf( nCycles );
@@ -351,7 +351,7 @@ void SfxXMLMetaExport::Export()
// property is a int32 with the Time::GetTime value
aPropVal = xInfoProp->getPropertyValue(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PROP_EDITINGDURATION)) );
- sal_Int32 nDurVal;
+ sal_Int32 nDurVal = 0;
if ( aPropVal >>= nDurVal )
{
Time aDurTime( nDurVal );
@@ -404,7 +404,7 @@ void SfxXMLMetaExport::Export()
aPropVal = xInfoProp->getPropertyValue(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PROP_RELOADSECS)) );
- sal_Int32 nSecs;
+ sal_Int32 nSecs = 0;
if ( aPropVal >>= nSecs )
{
Time aTime;
More information about the Libreoffice-commits
mailing list