summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp/ftpdirp.hxx
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 /ucb/source/ucp/ftp/ftpdirp.hxx
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 'ucb/source/ucp/ftp/ftpdirp.hxx')
-rw-r--r--ucb/source/ucp/ftp/ftpdirp.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/ftp/ftpdirp.hxx b/ucb/source/ucp/ftp/ftpdirp.hxx
index 68dc11879c0b..f8e04b9f138f 100644
--- a/ucb/source/ucp/ftp/ftpdirp.hxx
+++ b/ucb/source/ucp/ftp/ftpdirp.hxx
@@ -41,14 +41,14 @@ namespace ftp {
struct DateTime
: public com::sun::star::util::DateTime
{
- DateTime(const sal_uInt16& hundredthSeconds,
+ DateTime(const sal_uInt32& nanoSeconds,
const sal_uInt16& seconds,
const sal_uInt16& minutes,
const sal_uInt16& hours,
const sal_uInt16& day,
const sal_uInt16& month,
const sal_uInt16& year) SAL_THROW(())
- : com::sun::star::util::DateTime(hundredthSeconds,
+ : com::sun::star::util::DateTime(nanoSeconds,
seconds,
minutes,
hours,
@@ -60,11 +60,11 @@ namespace ftp {
void SetMonth(sal_uInt16 month) { Month = month; }
void SetDay(sal_uInt16 day) { Day = day; }
// Only zero allowed and used for time-argument
- void SetTime(sal_uInt16) { Hours = Minutes = Seconds = HundredthSeconds = 0; }
+ void SetTime(sal_uInt16) { Hours = Minutes = Seconds = NanoSeconds = 0; }
void SetHour(sal_uInt16 hours) { Hours = hours; }
void SetMin(sal_uInt16 minutes) { Minutes = minutes; }
void SetSec(sal_uInt16 seconds) { Seconds = seconds; }
- void Set100Sec(sal_uInt16 hundredthSec) { HundredthSeconds = hundredthSec; }
+ void SetNanoSec(sal_uInt32 nanoSec) { NanoSeconds = nanoSec; }
sal_uInt16 GetMonth(void) { return Month; }
};