From: Václav Slavík Date: Tue, 22 Jul 2003 11:13:50 +0000 (+0000) Subject: compilation fixes for Vadim's changes and Borland C++ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a6cbc4db3d59376bb7f0a5a6d2ed4c0b30253683 compilation fixes for Vadim's changes and Borland C++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 59a096dad6..1831c6a5ba 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -2319,5 +2319,9 @@ typedef struct window_t *WXWidget; classname(const classname&); \ classname& operator=(const classname&); +#define DECLARE_NO_ASSIGN_CLASS(classname) \ + private: \ + classname& operator=(const classname&); + #endif // _WX_DEFS_H_ diff --git a/include/wx/dialup.h b/include/wx/dialup.h index a38627daf1..8f4c5ee83b 100644 --- a/include/wx/dialup.h +++ b/include/wx/dialup.h @@ -184,7 +184,7 @@ public: virtual wxEvent *Clone() const { return new wxDialUpEvent(*this); } private: - DECLARE_NO_COPY_CLASS(wxDialUpEvent) + DECLARE_NO_ASSIGN_CLASS(wxDialUpEvent) }; // the type of dialup event handler function diff --git a/include/wx/generic/laywin.h b/include/wx/generic/laywin.h index 6451ece88d..ccbb0e58ee 100644 --- a/include/wx/generic/laywin.h +++ b/include/wx/generic/laywin.h @@ -99,7 +99,7 @@ protected: wxLayoutAlignment m_alignment; private: - DECLARE_DYNAMIC_CLASS_NO_COPY(wxQueryLayoutInfoEvent) + DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxQueryLayoutInfoEvent) }; typedef void (wxEvtHandler::*wxQueryLayoutInfoEventFunction)(wxQueryLayoutInfoEvent&); @@ -136,7 +136,7 @@ protected: wxRect m_rect; private: - DECLARE_DYNAMIC_CLASS_NO_COPY(wxCalculateLayoutEvent) + DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCalculateLayoutEvent) }; typedef void (wxEvtHandler::*wxCalculateLayoutEventFunction)(wxCalculateLayoutEvent&); diff --git a/include/wx/object.h b/include/wx/object.h index bfecd72a2a..1a2a2c8038 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -146,8 +146,7 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxChar *name); { return &name::sm_class##name; } #define DECLARE_DYNAMIC_CLASS_NO_ASSIGN(name) \ - private: \ - name& operator=(const name&); \ + DECLARE_NO_ASSIGN_CLASS(name) \ DECLARE_DYNAMIC_CLASS(name) #define DECLARE_DYNAMIC_CLASS_NO_COPY(name) \ diff --git a/include/wx/socket.h b/include/wx/socket.h index ca7c8fa490..965f39a921 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -361,7 +361,7 @@ public: wxSocketNotify m_event; void *m_clientData; - DECLARE_DYNAMIC_CLASS_NO_COPY(wxSocketEvent) + DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSocketEvent) }; diff --git a/include/wx/taskbar.h b/include/wx/taskbar.h index de482f4dcd..1e5e4d81e9 100644 --- a/include/wx/taskbar.h +++ b/include/wx/taskbar.h @@ -47,7 +47,7 @@ public: virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); } private: - DECLARE_NO_COPY_CLASS(wxTaskBarIconEvent) + DECLARE_NO_ASSIGN_CLASS(wxTaskBarIconEvent) }; BEGIN_DECLARE_EVENT_TYPES()