summaryrefslogtreecommitdiff
path: root/include/tools/date.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-29 23:57:38 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-06-30 04:58:49 +0000
commit710f41b7aec8e7d35a0da8be332aa289f98942af (patch)
treeb894ef2d3f06a63a85f423b2713a654ea57f9c69 /include/tools/date.hxx
parent1ca3beae12a7f222c987481e07a544845fc9fd46 (diff)
Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/tools/date.hxx')
-rw-r--r--include/tools/date.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx
index 714a97b85727..5b451a39b002 100644
--- a/include/tools/date.hxx
+++ b/include/tools/date.hxx
@@ -110,13 +110,13 @@ public:
sal_uInt16 GetDaysInMonth() const;
sal_uInt16 GetDaysInYear() const { return (IsLeapYear()) ? 366 : 365; }
- sal_Bool IsLeapYear() const;
+ bool IsLeapYear() const;
/** If the represented date is valid (1<=month<=12, 1<=day<=(28,29,30,31)
depending on month/year) AND is of the Gregorian calendar (1582-10-15
<= date) (AND implicitly date <= 9999-12-31 due to internal
representation) */
- sal_Bool IsValidAndGregorian() const;
+ bool IsValidAndGregorian() const;
/** If the represented date is valid (1<=month<=12, 1<=day<=(28,29,30,31)
depending on month/year) */
@@ -136,21 +136,21 @@ public:
*/
bool Normalize();
- sal_Bool IsBetween( const Date& rFrom, const Date& rTo ) const
+ bool IsBetween( const Date& rFrom, const Date& rTo ) const
{ return ((nDate >= rFrom.nDate) &&
(nDate <= rTo.nDate)); }
- sal_Bool operator ==( const Date& rDate ) const
+ bool operator ==( const Date& rDate ) const
{ return (nDate == rDate.nDate); }
- sal_Bool operator !=( const Date& rDate ) const
+ bool operator !=( const Date& rDate ) const
{ return (nDate != rDate.nDate); }
- sal_Bool operator >( const Date& rDate ) const
+ bool operator >( const Date& rDate ) const
{ return (nDate > rDate.nDate); }
- sal_Bool operator <( const Date& rDate ) const
+ bool operator <( const Date& rDate ) const
{ return (nDate < rDate.nDate); }
- sal_Bool operator >=( const Date& rDate ) const
+ bool operator >=( const Date& rDate ) const
{ return (nDate >= rDate.nDate); }
- sal_Bool operator <=( const Date& rDate ) const
+ bool operator <=( const Date& rDate ) const
{ return (nDate <= rDate.nDate); }
Date& operator =( const Date& rDate )