diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/SettingsExportHelper.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/draw/shapeexport4.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx index e8bb000942d1..c5b3db7b8e72 100644 --- a/xmloff/source/core/SettingsExportHelper.cxx +++ b/xmloff/source/core/SettingsExportHelper.cxx @@ -108,28 +108,28 @@ void XMLSettingsExportHelper::CallTypeFunction(const uno::Any& rAny, break; case uno::TypeClass_SHORT: { - sal_Int16 nInt16; + sal_Int16 nInt16 = 0; aAny >>= nInt16; exportShort(nInt16, rName); } break; case uno::TypeClass_LONG: { - sal_Int32 nInt32; + sal_Int32 nInt32 = 0; aAny >>= nInt32; exportInt(nInt32, rName); } break; case uno::TypeClass_HYPER: { - sal_Int64 nInt64; + sal_Int64 nInt64 = 0; aAny >>= nInt64; exportLong(nInt64, rName); } break; case uno::TypeClass_DOUBLE: { - double fDouble; + double fDouble = 0.0; aAny >>= fDouble; exportDouble(fDouble, rName); } diff --git a/xmloff/source/draw/shapeexport4.cxx b/xmloff/source/draw/shapeexport4.cxx index e2e804eefb43..6dacdba12e32 100644 --- a/xmloff/source/draw/shapeexport4.cxx +++ b/xmloff/source/draw/shapeexport4.cxx @@ -1031,7 +1031,7 @@ void ImpExportEnhancedGeometry( SvXMLExport& rExport, const uno::Reference< bean { if ( rAdj.Value.getValueTypeClass() == uno::TypeClass_DOUBLE ) { - double fValue; + double fValue = 0.0; rAdj.Value >>= fValue; rUnitConverter.convertDouble( aStrBuffer, fValue ); } |