Kaydet (Commit) 88a822a2 authored tarafından Michael Stahl's avatar Michael Stahl

scaddins: workaround spurious MSVC warning C4701

Change-Id: I5b184a552b258e922d594cabd52c9f2bae3bb2b1
üst c5058e6b
......@@ -600,6 +600,12 @@ double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDat
case 3: // 3=exact/365
nDaysInYear = 365;
break;
#ifdef _MSC_VER
// Coverity complains this is dead code, but MSVC thinks nDaysInYear
// is uninitialized if it's missing.
default:
throw lang::IllegalArgumentException();
#endif
}
return double( nDayDiff ) / nDaysInYear;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment