From 58654ed0f2b9f7888c80840ce3d526c98a9bf05f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 11 May 1999 14:47:05 +0000 Subject: [PATCH] #pragma interface/implementation for gcc added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 8 ++++++++ src/common/wincmn.cpp | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wx/window.h b/include/wx/window.h index 5edeba5569..44a4084193 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -12,6 +12,10 @@ #ifndef _WX_WINDOW_H_BASE_ #define _WX_WINDOW_H_BASE_ +#ifdef __GNUG__ + #pragma interface "windowbase.h" +#endif + // ---------------------------------------------------------------------------- // headers which we must include here // ---------------------------------------------------------------------------- @@ -719,6 +723,10 @@ private: // contains the last id generated by NewControlId static int ms_lastControlId; + // no copy ctor/assignment operator + wxWindowBase(const wxWindowBase&); + wxWindowBase& operator=(const wxWindowBase&); + DECLARE_EVENT_TABLE() }; diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index fd7ded32ac..66390ee06f 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -17,6 +17,10 @@ // headers // ---------------------------------------------------------------------------- +#ifdef __GNUG__ + #pragma implementation "windowbase.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -78,7 +82,6 @@ END_EVENT_TABLE() void wxWindowBase::InitBase() { // no window yet, no parent nor children -// m_widget = (WXWidget)0; m_parent = (wxWindow *)NULL; m_windowId = -1; m_children.DeleteContents( FALSE ); // don't auto delete node data -- 2.45.2