summaryrefslogtreecommitdiff
path: root/include/tools/time.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/time.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/time.hxx')
-rw-r--r--include/tools/time.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/tools/time.hxx b/include/tools/time.hxx
index 64751af42284..31a8f94d23b9 100644
--- a/include/tools/time.hxx
+++ b/include/tools/time.hxx
@@ -98,22 +98,22 @@ public:
/// 12 hours == 0.5 days
double GetTimeInDays() const;
- sal_Bool IsBetween( const Time& rFrom, const Time& rTo ) const
+ bool IsBetween( const Time& rFrom, const Time& rTo ) const
{ return ((nTime >= rFrom.nTime) && (nTime <= rTo.nTime)); }
- sal_Bool IsEqualIgnoreNanoSec( const Time& rTime ) const;
+ bool IsEqualIgnoreNanoSec( const Time& rTime ) const;
- sal_Bool operator ==( const Time& rTime ) const
+ bool operator ==( const Time& rTime ) const
{ return (nTime == rTime.nTime); }
- sal_Bool operator !=( const Time& rTime ) const
+ bool operator !=( const Time& rTime ) const
{ return (nTime != rTime.nTime); }
- sal_Bool operator >( const Time& rTime ) const
+ bool operator >( const Time& rTime ) const
{ return (nTime > rTime.nTime); }
- sal_Bool operator <( const Time& rTime ) const
+ bool operator <( const Time& rTime ) const
{ return (nTime < rTime.nTime); }
- sal_Bool operator >=( const Time& rTime ) const
+ bool operator >=( const Time& rTime ) const
{ return (nTime >= rTime.nTime); }
- sal_Bool operator <=( const Time& rTime ) const
+ bool operator <=( const Time& rTime ) const
{ return (nTime <= rTime.nTime); }
static Time GetUTCOffset();