From 4a40cd9bae5e4e76fadb6188b399905028a02bc7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Jan 2011 22:03:56 +0000 Subject: [PATCH] Forward declare classes instead of including their declarations. No real changes, just reduce the compilation dependencies a bit by only forward declaring wxComboCtrl and wxCalendarCtrl in wx/generic/datectrl.h instead of including the headers with their full declarations. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/datectrl.h | 4 ++-- src/generic/datectlg.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/wx/generic/datectrl.h b/include/wx/generic/datectrl.h index de60cabf4a..e1b5ad3563 100644 --- a/include/wx/generic/datectrl.h +++ b/include/wx/generic/datectrl.h @@ -12,9 +12,9 @@ #ifndef _WX_GENERIC_DATECTRL_H_ #define _WX_GENERIC_DATECTRL_H_ -#include "wx/calctrl.h" -#include "wx/combo.h" +class WXDLLIMPEXP_FWD_CORE wxComboCtrl; +class WXDLLIMPEXP_FWD_ADV wxCalendarCtrl; class WXDLLIMPEXP_FWD_ADV wxCalendarComboPopup; class WXDLLIMPEXP_ADV wxDatePickerCtrlGeneric : public wxDatePickerCtrlBase diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 5d4e6b0614..a862229255 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -34,9 +34,10 @@ #include "wx/valtext.h" #endif -#include "wx/datectrl.h" -#include "wx/generic/datectrl.h" +#include "wx/calctrl.h" +#include "wx/combo.h" +#include "wx/datectrl.h" // ---------------------------------------------------------------------------- // constants -- 2.45.2