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
commit5600514d29a65f7769b8b3d739dad4b9a15e75d3 (patch)
treed245318a0db489ff8ac3e93e9cef9ad083111fa4 /io
parentb634a5945fc6db6f9587e4504a3f6cafe2279bb0 (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 c558877e8..5f07959e0 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")) );