summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-30 02:06:12 +0100
committerEike Rathke <erack@redhat.com>2011-11-30 02:06:12 +0100
commit1f9150ab1bbb121c59014fba7c7cd229aceeeb66 (patch)
tree4a4003e02391f94d8b6ffd21ef5160e5884c18ef
parentByteString->rtl::OUStringToOString (diff)
downloadbinfilter-1f9150ab1bbb121c59014fba7c7cd229aceeeb66.tar.gz
binfilter-1f9150ab1bbb121c59014fba7c7cd229aceeeb66.zip
renamed Date::IsValid() to IsValidAndGregorian() to prevent misassumptions
-rw-r--r--binfilter/bf_sc/source/core/tool/sc_interpr2.cxx2
-rw-r--r--binfilter/bf_sfx2/source/doc/timestamp.cxx2
-rw-r--r--binfilter/bf_svtools/source/items1/svt_dateitem.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx b/binfilter/bf_sc/source/core/tool/sc_interpr2.cxx
index e585be335..edb639f66 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 6c42d1ee2..233ec59b9 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 61f74b760..38abd6b2d 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);