From a69e2a0ac7635d1df2dd36ffab64324a8b915384 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Feb 2005 23:17:30 +0000 Subject: [PATCH] corrected wxRTTI macros git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/datectrl.h | 3 +-- include/wx/msw/datectrl.h | 2 +- include/wx/palmos/datectrl.h | 3 ++- src/msw/datectrl.cpp | 2 ++ src/palmos/datectrl.cpp | 2 ++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/wx/datectrl.h b/include/wx/datectrl.h index 397806bdd9..81f6c0d62e 100644 --- a/include/wx/datectrl.h +++ b/include/wx/datectrl.h @@ -102,8 +102,7 @@ public: } private: - DECLARE_DYNAMIC_CLASS(wxDatePickerCtrl) - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif diff --git a/include/wx/msw/datectrl.h b/include/wx/msw/datectrl.h index 4e891c5b71..6ca2c22b66 100644 --- a/include/wx/msw/datectrl.h +++ b/include/wx/msw/datectrl.h @@ -61,7 +61,7 @@ protected: virtual wxSize DoGetBestSize() const; - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif // _WX_MSW_DATECTRL_H_ diff --git a/include/wx/palmos/datectrl.h b/include/wx/palmos/datectrl.h index d6e935fe35..4b4d086135 100644 --- a/include/wx/palmos/datectrl.h +++ b/include/wx/palmos/datectrl.h @@ -65,7 +65,8 @@ private: void Init() { m_dt = wxDateTime::Today(); } - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif // _WX_PALMOS_DATECTRL_H_ diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 683c359077..5dc3929b53 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -58,6 +58,8 @@ typedef struct tagNMDATETIMECHANGE #define DateTime_SetSystemtime DateTime_SetSystemTime #endif +IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl) + // ============================================================================ // implementation // ============================================================================ diff --git a/src/palmos/datectrl.cpp b/src/palmos/datectrl.cpp index d64848beca..79f890156c 100644 --- a/src/palmos/datectrl.cpp +++ b/src/palmos/datectrl.cpp @@ -36,6 +36,8 @@ #define _WX_DEFINE_DATE_EVENTS_ #include "wx/dateevt.h" +IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl) + // ============================================================================ // implementation // ============================================================================ -- 2.45.2