diff options
Diffstat (limited to 'tools/source/datetime/tdate.cxx')
-rw-r--r-- | tools/source/datetime/tdate.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx index 0d4f2a35dbc9..f49433a1c4ba 100644 --- a/tools/source/datetime/tdate.cxx +++ b/tools/source/datetime/tdate.cxx @@ -33,16 +33,14 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer); #endif static sal_uInt16 aDaysInMonth[12] = { 31, 28, 31, 30, 31, 30, - 31, 31, 30, 31, 30, 31 }; + 31, 31, 30, 31, 30, 31 }; #define MAX_DAYS 3636532 inline sal_Bool ImpIsLeapYear( sal_uInt16 nYear ) { - return ( - ( ((nYear % 4) == 0) && ((nYear % 100) != 0) ) || - ( (nYear % 400) == 0 ) - ); + return ( ( ((nYear % 4) == 0) && ((nYear % 100) != 0) ) || + ( (nYear % 400) == 0 ) ); } // All callers must have sanitized or normalized month and year values! |