summaryrefslogtreecommitdiff
path: root/stoc
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
commitfbf485ce60434bb948d5c00000e6a71063f89886 (patch)
tree796188cbe699b865053480c3550f80a58754e3da /stoc
parenta2cadf4bc167c9a5ad534af03f7960c6ef477c05 (diff)
cmcfixes71: #i108597# fix uninit warnings
Diffstat (limited to 'stoc')
-rw-r--r--stoc/test/testintrosp.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index 36ff7d47f519..1176f4549aaa 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -169,7 +169,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_FLOAT:
{
- float f;
+ float f(0.0);
aValue >>= f;
snprintf( pBuffer, sizeof( pBuffer ), "%f", f );
aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US );
@@ -177,7 +177,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_DOUBLE:
{
- double d;
+ double d(0.0);
aValue >>= d;
snprintf( pBuffer, sizeof( pBuffer ), "%f", d );
aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US );
@@ -185,21 +185,21 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference<
}
case TypeClass_BYTE:
{
- sal_Int8 n;
+ sal_Int8 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( (sal_Int32) n );
break;
}
case TypeClass_SHORT:
{
- sal_Int16 n;
+ sal_Int16 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( (sal_Int32) n );
break;
}
case TypeClass_LONG:
{
- sal_Int32 n;
+ sal_Int32 n(0);
aValue >>= n;
aRetStr = OUString::valueOf( n );
break;
@@ -1308,21 +1308,21 @@ static sal_Bool test_introsp( Reference< XMultiServiceFactory > xMgr,
}
case TypeClass_DOUBLE:
{
- double d;
+ double d(0.0);
aPropVal >>= d;
aNewVal <<= d + 1.0;
break;
}
case TypeClass_SHORT:
{
- sal_Int16 n;
+ sal_Int16 n(0);
aPropVal >>= n;
aNewVal <<= sal_Int16( n + 1 );
break;
}
case TypeClass_LONG:
{
- sal_Int32 n;
+ sal_Int32 n(0);
aPropVal >>= n;
aNewVal <<= sal_Int32( n + 1 );
break;