sw/source/core/fields/flddat.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dd33515b8c1a718f314683235738131cb2759bb1 Author: Eike Rathke <er...@redhat.com> AuthorDate: Wed Jun 21 11:48:30 2023 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Wed Jun 21 15:55:48 2023 +0200 sw: Use DateTime::Sub() instead of operator-() Change-Id: I0c2ce0e3eb6eab70e694adc567b688b579bb52d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153385 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sw/source/core/fields/flddat.cxx b/sw/source/core/fields/flddat.cxx index 51246f6eea0e..3dcaf848f417 100644 --- a/sw/source/core/fields/flddat.cxx +++ b/sw/source/core/fields/flddat.cxx @@ -124,7 +124,7 @@ double SwDateTimeField::GetDateTime(SwDoc& rDoc, const DateTime& rDT) SvNumberFormatter* pFormatter = rDoc.GetNumberFormatter(); const Date& rNullDate = pFormatter->GetNullDate(); - double fResult = rDT - DateTime(rNullDate); + double fResult = DateTime::Sub(rDT, DateTime(rNullDate)); return fResult; }