summaryrefslogtreecommitdiff
path: root/io
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 /io
parenta2cadf4bc167c9a5ad534af03f7960c6ef477c05 (diff)
cmcfixes71: #i108597# fix uninit warnings
Diffstat (limited to 'io')
-rw-r--r--io/test/stm/datatest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx
index b7515b3c5417..72762c50116f 100644
--- a/io/test/stm/datatest.cxx
+++ b/io/test/stm/datatest.cxx
@@ -853,8 +853,8 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp
b = b && ( r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) ==
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) );
if( ! b ){
- float f1;
- float f2;
+ float f1(0.0);
+ float f2(0.0);
r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) >>= f1;
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("float")) ) >>= f2;
fprintf( stderr, "compareMyPropertySet: %f %f 3\n",f1,f2 );
@@ -864,7 +864,7 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp
r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("double" ))) );
if( ! b ) fprintf( stderr, "compareMyPropertySet: 4\n" );
- sal_Bool b1 ,b2;
+ sal_Bool b1(sal_False), b2(sal_False);
Any a =r1->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("bool")) );
a >>= b1;
a = r2->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("bool")) );