From 1b3a2c9a2ece0a598c5dfdbef450dad8a0379417 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 --- .../source/commontools/FDatabaseMetaDataResultSet.cxx | 12 ++++++------ connectivity/source/commontools/FValue.cxx | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index afa53652d4e6..e7727c500ce1 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -764,7 +764,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA break; case TypeClass_BYTE: { - sal_Int8 nValue; + sal_Int8 nValue(0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } @@ -772,7 +772,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA case TypeClass_SHORT: case TypeClass_UNSIGNED_SHORT: { - sal_Int16 nValue; + sal_Int16 nValue(0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } @@ -780,7 +780,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA case TypeClass_LONG: case TypeClass_UNSIGNED_LONG: { - sal_Int32 nValue; + sal_Int32 nValue(0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } @@ -788,21 +788,21 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA case TypeClass_HYPER: case TypeClass_UNSIGNED_HYPER: { - sal_Int64 nValue; + sal_Int64 nValue(0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } break; case TypeClass_FLOAT: { - float nValue; + float nValue(0.0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } break; case TypeClass_DOUBLE: { - double nValue; + double nValue(0.0); *pRowIter >>= nValue; aValue = new ORowSetValueDecorator(ORowSetValue(nValue)); } diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index f171af5ec530..d97399621237 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -2136,35 +2136,35 @@ void ORowSetValue::fill(const Any& _rValue) } case TypeClass_FLOAT: { - float aDummy; + float aDummy(0.0); _rValue >>= aDummy; (*this) = aDummy; break; } case TypeClass_DOUBLE: { - double aDummy; + double aDummy(0.0); _rValue >>= aDummy; (*this) = aDummy; break; } case TypeClass_BYTE: { - sal_Int8 aDummy; + sal_Int8 aDummy(0); _rValue >>= aDummy; (*this) = aDummy; break; } case TypeClass_SHORT: { - sal_Int16 aDummy; + sal_Int16 aDummy(0); _rValue >>= aDummy; (*this) = aDummy; break; } case TypeClass_LONG: { - sal_Int32 aDummy; + sal_Int32 aDummy(0); _rValue >>= aDummy; (*this) = aDummy; break; -- cgit v1.2.3