wxDateTime::IsValid() now returns m_time != (wxLongLong)-1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -100,7 +100,7 @@ class WXDLLEXPORT wxDateSpan;
|
||||
// wxInvalidDateTime)
|
||||
class WXDLLEXPORT wxDateTime;
|
||||
|
||||
WXDLLEXPORT_DATA(extern wxDateTime&) wxDefaultDateTime;
|
||||
WXDLLEXPORT_DATA(extern const wxDateTime&) wxDefaultDateTime;
|
||||
#define wxInvalidDateTime wxDefaultDateTime
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -760,8 +760,9 @@ public:
|
||||
// result of timezone shift)
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
// is the date valid (TRUE even for non initialized objects)?
|
||||
inline bool IsValid() const { return this != &wxInvalidDateTime; }
|
||||
// is the date valid? Note that this will return TRUE for non
|
||||
// initialized objects but FALSE if *this == wxInvalidDateTime
|
||||
inline bool IsValid() const { return m_time != wxInvalidDateTime.m_time; }
|
||||
|
||||
// get the broken down date/time representation in the given timezone
|
||||
//
|
||||
|
Reference in New Issue
Block a user