diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-21 13:32:10 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-21 19:26:43 +0200 |
commit | 252aab1b9dc1dbeace3087929a52e1248f043839 (patch) | |
tree | 2890b163a00aaed11c53bfb68c8dbd16325812a7 /sc | |
parent | ec340697d682bd7d0a361c8c701e513329c032bd (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 'sc')
-rw-r--r-- | sc/source/filter/excel/xlroot.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx index 72b1450a5084..2e9588b6e769 100644 --- a/sc/source/filter/excel/xlroot.cxx +++ b/sc/source/filter/excel/xlroot.cxx @@ -339,7 +339,7 @@ DateTime XclRoot::GetDateTimeFromDouble( double fValue ) const DateTime aDateTime = GetNullDate() + fValue; // adjust dates before 1900-03-01 to get correct time values if( aDateTime < DateTime( Date( 1, 3, 1900 ) ) ) - aDateTime += sal_Int32(1); + aDateTime.AddDays(1); return aDateTime; } |