Commits

Vladimir Glazunov  committed 0eeb7f4

#i10000# WAE: initialize variables

  • Participants
  • Parent commits 2447767

Comments (0)

Files changed (2)

File chart2/source/tools/ExplicitCategoriesProvider.cxx

         uno::Any aAny = rInAnys[nN];
         if( aAny.hasValue() )
         {
-            double fDouble;
+            double fDouble = 0;
             if( aAny>>=fDouble )
             {
                 if( !::rtl::math::isNan(fDouble) )
             if( aAny.hasValue() )
             {
                 OUString aTest;
-                double fTest;
+                double fTest = 0;
                 if( (aAny>>=aTest) && !aTest.getLength() ) //empty String
                     bContainsEmptyString = true;
                 else if( (aAny>>=fTest) &&  ::rtl::math::isNan(fTest) )

File sc/source/filter/excel/xechart.cxx

 
 bool lclConvertTimeValue( const XclExpRoot& rRoot, sal_uInt16& rnValue, const Any& rAny, sal_uInt16 nTimeUnit )
 {
-    double fSerialDate;
+    double fSerialDate = 0;
     bool bAuto = lclIsAutoAnyOrGetValue( fSerialDate, rAny );
     if( !bAuto )
         rnValue = lclGetTimeValue( rRoot, fSerialDate, nTimeUnit );