summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-21 13:32:10 +0200
committerEike Rathke <erack@redhat.com>2017-07-21 19:26:43 +0200
commit252aab1b9dc1dbeace3087929a52e1248f043839 (patch)
tree2890b163a00aaed11c53bfb68c8dbd16325812a7 /extensions
parentec340697d682bd7d0a361c8c701e513329c032bd (diff)
Eliminate DateTime::operator+=() and -=() with POD types
And make some tools::Time conversion ctors explicit to catch more oddities like automatic conversion from sal_Int64 that might be unintentional. Change-Id: If275297d86d6657544c056a712b862523e310e44 Reviewed-on: https://gerrit.libreoffice.org/40275 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 8381a7abad88..f566a8483eb5 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -298,13 +298,13 @@ namespace pcr
// add the "days" part
double nDays = floor( nValue );
- aDateTime += nDays;
+ aDateTime.AddDays( nDays );
// add the "time" part
double nTime = nValue - nDays;
nTime = ::rtl::math::round( nTime * 86400.0 ) / 86400.0;
// we're not interested in 100th seconds, and this here prevents rounding errors
- aDateTime += nTime;
+ aDateTime.AddTime( nTime );
util::DateTime aUNODateTime;
::utl::typeConvert( aDateTime, aUNODateTime );