binfilter/bf_sc/source/core/tool/sc_interpr2.cxx | 2 +- binfilter/bf_sfx2/source/doc/timestamp.cxx | 2 +- binfilter/bf_svtools/source/items1/svt_dateitem.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 1f9150ab1bbb121c59014fba7c7cd229aceeeb66 Author: Eike Rathke <er...@redhat.com> Date: Wed Nov 30 02:06:12 2011 +0100 renamed Date::IsValid() to IsValidAndGregorian() to prevent misassumptions diff --git a/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx b/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx index e585be3..edb639f 100644 --- a/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx +++ b/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx @@ -75,7 +75,7 @@ namespace binfilter { /*N*/ } /*N*/ Date aDate(1, nM, nY); /*N*/ aDate += nDay - 1; -/*N*/ if (aDate.IsValid()) +/*N*/ if (aDate.IsValidAndGregorian()) /*N*/ return (double) (aDate - *(pFormatter->GetNullDate())); /*N*/ else /*N*/ { diff --git a/binfilter/bf_sfx2/source/doc/timestamp.cxx b/binfilter/bf_sfx2/source/doc/timestamp.cxx index 6c42d1e..233ec59 100644 --- a/binfilter/bf_sfx2/source/doc/timestamp.cxx +++ b/binfilter/bf_sfx2/source/doc/timestamp.cxx @@ -186,7 +186,7 @@ BOOL TimeStamp::IsValid () const // The name can have a defaultvalue! // And its better to safe this result in a local variable ... for better debug! (to see value) BOOL bResult = ( m_aModifiedDateTime != TIMESTAMP_INVALID_DATETIME ) ; - return bResult && m_aModifiedDateTime.IsValid(); + return bResult && m_aModifiedDateTime.IsValidAndGregorian(); } diff --git a/binfilter/bf_svtools/source/items1/svt_dateitem.cxx b/binfilter/bf_svtools/source/items1/svt_dateitem.cxx index 61f74b7..38abd6b 100644 --- a/binfilter/bf_svtools/source/items1/svt_dateitem.cxx +++ b/binfilter/bf_svtools/source/items1/svt_dateitem.cxx @@ -137,7 +137,7 @@ SfxItemPresentation SfxDateTimeItem::GetPresentation ) const { DBG_CHKTHIS(SfxDateTimeItem, 0); - if (aDateTime.IsValid()) + if (aDateTime.IsValidAndGregorian()) if (pIntlWrapper) { rText = pIntlWrapper->getLocaleData()->getDate(aDateTime); _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits