summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-01-23 12:35:22 +0000
committerCaolán McNamara <cmc@openoffice.org>2010-01-23 12:35:22 +0000
commit1b3a2c9a2ece0a598c5dfdbef450dad8a0379417 (patch)
treea707dc20d788319d5c3d5788baddc59ed2259b9c /connectivity/source
parent3b3e144c13a85b21b32904f245f44256c63e10e5 (diff)
cmcfixes71: #i108597# fix uninit warnings
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx12
-rw-r--r--connectivity/source/commontools/FValue.cxx10
2 files changed, 11 insertions, 11 deletions
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;