summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-04-19 17:24:03 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-19 17:27:10 +0200
commit5df981a2a26106e6283a88fb27e6c6659fe1259d (patch)
treed0f89c26e0794fc26ed60c1cf65224c0728c5aca /tools
parent877f55490f7105e2b1a40cd4bd9860fe8be2aebf (diff)
tools ::Time: change constructor to fixed-length integers
Change-Id: I20180cda1a28f898f487aff605796077d3418be3
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/time.hxx4
-rw-r--r--tools/source/datetime/ttime.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/inc/tools/time.hxx b/tools/inc/tools/time.hxx
index 6a52f2678013..64751af42284 100644
--- a/tools/inc/tools/time.hxx
+++ b/tools/inc/tools/time.hxx
@@ -66,8 +66,8 @@ public:
Time( const ResId & rResId );
Time( sal_Int64 _nTime ) { Time::nTime = _nTime; }
Time( const Time& rTime );
- Time( sal_uIntPtr nHour, sal_uIntPtr nMin,
- sal_uIntPtr nSec = 0, sal_uIntPtr nNanoSec = 0 );
+ Time( sal_uInt32 nHour, sal_uInt32 nMin,
+ sal_uInt32 nSec = 0, sal_uInt64 nNanoSec = 0 );
void SetTime( sal_Int64 nNewTime ) { nTime = nNewTime; }
sal_Int64 GetTime() const { return nTime; }
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index b10d08691086..9f1241cfd76b 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -138,7 +138,7 @@ Time::Time( const Time& rTime )
nTime = rTime.nTime;
}
-Time::Time( sal_uIntPtr nHour, sal_uIntPtr nMin, sal_uIntPtr nSec, sal_uIntPtr nNanoSec )
+Time::Time( sal_uInt32 nHour, sal_uInt32 nMin, sal_uInt32 nSec, sal_uInt64 nNanoSec )
{
// normalize time
nSec += nNanoSec / nanoSecInSec;