[Libreoffice-commits] .: binfilter/bf_sc binfilter/bf_sfx2 binfilter/bf_svtools
Eike Rathke
erack at kemper.freedesktop.org
Tue Nov 29 17:09:36 PST 2011
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 <erack at 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);
More information about the Libreoffice-commits
mailing list