diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-18 18:33:10 +0200 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-18 18:33:54 +0200 |
commit | 920dcaec05984f8dbe0c413460a5d24a64cba149 (patch) | |
tree | 523c8dea02adba2ad2eb55d6464d61a5354177a0 /tools/source/datetime | |
parent | 15b3bc8916b1e9968c0d75d2ff74d5a38d54e25b (diff) |
re-indent falsely formatted code in tools/source
Change-Id: Ibc26313e79dd5f992c4bfb9454a9798fb1a78f00
Diffstat (limited to 'tools/source/datetime')
-rw-r--r-- | tools/source/datetime/datetime.cxx | 3 | ||||
-rw-r--r-- | tools/source/datetime/tdate.cxx | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/tools/source/datetime/datetime.cxx b/tools/source/datetime/datetime.cxx index c148c26273c0..4027d16fce97 100644 --- a/tools/source/datetime/datetime.cxx +++ b/tools/source/datetime/datetime.cxx @@ -19,8 +19,7 @@ #include <tools/datetime.hxx> #include <rtl/math.hxx> -sal_Bool DateTime::IsBetween( const DateTime& rFrom, - const DateTime& rTo ) const +sal_Bool DateTime::IsBetween( const DateTime& rFrom, const DateTime& rTo ) const { if ( (*this >= rFrom) && (*this <= rTo) ) return sal_True; 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! |