diff options
author | Caolán McNamara <cmc@openoffice.org> | 2010-01-23 12:35:22 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2010-01-23 12:35:22 +0000 |
commit | 1b3a2c9a2ece0a598c5dfdbef450dad8a0379417 (patch) | |
tree | a707dc20d788319d5c3d5788baddc59ed2259b9c /xmloff | |
parent | 3b3e144c13a85b21b32904f245f44256c63e10e5 (diff) |
cmcfixes71: #i108597# fix uninit warnings
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 ); } |