diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-20 18:32:57 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-21 12:24:27 +0200 |
commit | fcd0361d6be8d088be12e500f0120afd7995d1ac (patch) | |
tree | 9e18c0310405d68d9151db9073cc8f6926df077d /sfx2 | |
parent | 2e486daff35ab16e810bfdafb24b19bcbf2fe8cd (diff) |
Eliminate Date::operator+=() and -=() and replace with Date::AddDays()
Clarifies code and gets rid of explicitly casting the operand to sal_Int32.
Also in preparation of removing DateTime::operator+=(sal_Int32) that is
confusingly similar to DateTime::operator+=(double) and just depends on type.
Change-Id: I83422e2940fbb017978db9b5734b4966228af3de
Reviewed-on: https://gerrit.libreoffice.org/40248
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index d5e7348a8945..7c34acc49f35 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -574,7 +574,7 @@ void SfxOleDateProperty::ImplLoad( SvStream& rStrm ) //stored as number of days (not seconds) since December 31, 1899 ::Date aDate(31, 12, 1899); long nDays = fValue; - aDate += nDays; + aDate.AddDays( nDays ); maDate.Day = aDate.GetDay(); maDate.Month = aDate.GetMonth(); maDate.Year = aDate.GetYear(); |