summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-07-01 16:20:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 08:42:15 +0200
commit1fe0dc7377300ad961438f5a69bd8bc023cc314d (patch)
tree7a7d740747bd5b87d3c5ead7dd96d79d4a470bd2 /sfx2
parentf5b0cc2a3690ba963b3f150886e1d5ddddee9530 (diff)
use sal_Int64 in tools::DateTime
instead of long which has platform-dependent bitlength Change-Id: I888458d7807027e237772940d4b2cc15c2971243 Reviewed-on: https://gerrit.libreoffice.org/39434 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objcont.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 44f779de7d00..9b83ffe426af 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -230,10 +230,10 @@ void SfxObjectShell::UpdateTime_Impl(
secs/3600, (secs%3600)/60, secs%60, 0);
// Initialize some local member! Its necessary for follow operations!
- DateTime aNow( DateTime::SYSTEM ); // Date and time at current moment
- tools::Time n24Time (24,0,0,0) ; // Time-value for 24 hours - see follow calculation
- sal_uIntPtr nDays = 0 ; // Count of days between now and last editing
- tools::Time nAddTime (0) ; // Value to add on aOldTime
+ DateTime aNow( DateTime::SYSTEM ); // Date and time at current moment
+ tools::Time n24Time (24,0,0,0) ; // Time-value for 24 hours - see follow calculation
+ sal_Int32 nDays = 0 ; // Count of days between now and last editing
+ tools::Time nAddTime (0) ; // Value to add on aOldTime
// Save impossible cases!
// User has changed time to the past between last editing and now ... it's not possible!!!