summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-17 08:36:26 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-18 21:34:46 +0200
commit9830fd36dbdb72c79703b0c61efc027fba793c5a (patch)
tree2e9d698e6ca109dc6627adb5c84aa2b635bcfe92 /comphelper
parent5aaaf0694b6e3213685563fc3bc90d19b10f5c75 (diff)
date/time IDL datatypes incompatible change
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/anycompare.cxx4
-rw-r--r--comphelper/source/misc/types.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx
index 470be26794ce..775386e9c083 100644
--- a/comphelper/source/misc/anycompare.cxx
+++ b/comphelper/source/misc/anycompare.cxx
@@ -116,7 +116,7 @@ namespace comphelper
if ( lhs.Seconds > rhs.Seconds )
return false;
- if ( lhs.HundredthSeconds < rhs.HundredthSeconds )
+ if ( lhs.NanoSeconds < rhs.NanoSeconds )
return true;
return false;
}
@@ -166,7 +166,7 @@ namespace comphelper
if ( lhs.Seconds > rhs.Seconds )
return false;
- if ( lhs.HundredthSeconds < rhs.HundredthSeconds )
+ if ( lhs.NanoSeconds < rhs.NanoSeconds )
return true;
return false;
}
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx
index e77176fb2351..fbf49f3a9408 100644
--- a/comphelper/source/misc/types.cxx
+++ b/comphelper/source/misc/types.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star::lang;
//-------------------------------------------------------------------------
sal_Bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
{
- return ( _rLeft.HundredthSeconds == _rRight.HundredthSeconds) &&
+ return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
( _rLeft.Minutes == _rRight.Minutes) &&
( _rLeft.Hours == _rRight.Hours) &&
@@ -64,7 +64,7 @@ sal_Bool operator ==(const Date& _rLeft, const Date& _rRight)
//-------------------------------------------------------------------------
sal_Bool operator ==(const Time& _rLeft, const Time& _rRight)
{
- return ( _rLeft.HundredthSeconds == _rRight.HundredthSeconds) &&
+ return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
( _rLeft.Minutes == _rRight.Minutes) &&
( _rLeft.Hours == _rRight.Hours) ;