From c3c62822fdda9d340179dec663a806e905882cc9 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 25 Oct 2007 16:13:06 +0000 Subject: [PATCH] build fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dataview.h | 2 +- src/common/datavcmn.cpp | 11 +++++++++-- src/gtk/dataview.cpp | 15 ++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/wx/dataview.h b/include/wx/dataview.h index d94583a945..958849901f 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -78,7 +78,7 @@ public: operator const void* () const { return m_id; } #ifdef __WXDEBUG__ - void Print( const wxString &text ) const { wxPrintf( "item %s: %d\n", text, (int) m_id ); } + void Print( const wxString &text ) const; #endif private: diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 9fa5635c20..65c8932653 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -20,12 +20,13 @@ #include "wx/dataview.h" #include "wx/spinctrl.h" -#include "wx/dc.h" -#include "wx/settings.h" #ifndef WX_PRECOMP + #include "wx/dc.h" + #include "wx/settings.h" #include "wx/log.h" #include "wx/icon.h" + #include "wx/crt.h" #endif const wxChar wxDataViewCtrlNameStr[] = wxT("dataviewCtrl"); @@ -36,6 +37,12 @@ bool operator == (const wxDataViewItem &left, const wxDataViewItem &right) return (left.GetID() == right.GetID() ); } +#ifdef __WXDEBUG__ +void wxDataViewItem::Print(const wxString& text) const +{ + wxPrintf("item %s: %l\n", text, (long)m_id); +} +#endif // --------------------------------------------------------- // wxDataViewModelNotifier diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 157038541f..f7d910d2de 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -20,25 +20,18 @@ #include "wx/log.h" #include "wx/dcclient.h" #include "wx/sizer.h" + #include "wx/icon.h" + #include "wx/list.h" + #include "wx/settings.h" + #include "wx/crt.h" #endif #include "wx/stockitem.h" #include "wx/calctrl.h" #include "wx/popupwin.h" -#include "wx/icon.h" -#include "wx/list.h" #include "wx/listimpl.cpp" -#include "wx/settings.h" #include "wx/gtk/private.h" -#include "wx/gtk/win_gtk.h" - -#include -#include -#include -#include - -#include //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- -- 2.45.2