Misc warning fixes by ABX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -949,7 +949,6 @@ BOOL TmFromOleDate(DATE dtSrc, struct tm& tmDest)
|
||||
if (dtSrc > MAX_DATE || dtSrc < MIN_DATE) // about year 100 to about 9999
|
||||
return FALSE;
|
||||
|
||||
long nDays; // Number of days since Dec. 30, 1899
|
||||
long nDaysAbsolute; // Number of days since 1/1/0
|
||||
long nSecsInDay; // Time in seconds since midnight
|
||||
long nMinutesInDay; // Minutes in day
|
||||
@@ -964,9 +963,6 @@ BOOL TmFromOleDate(DATE dtSrc, struct tm& tmDest)
|
||||
|
||||
double dblDate = dtSrc; // tempory serial date
|
||||
|
||||
// If a valid date, then this conversion should not overflow
|
||||
nDays = (long)dblDate;
|
||||
|
||||
// Round to the second
|
||||
dblDate += ((dtSrc > 0.0) ? HALF_SECOND : -HALF_SECOND);
|
||||
|
||||
|
Reference in New Issue
Block a user