]> git.saurik.com Git - wxWidgets.git/commitdiff
Forward declare classes instead of including their declarations.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Jan 2011 22:03:56 +0000 (22:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Jan 2011 22:03:56 +0000 (22:03 +0000)
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
src/generic/datectlg.cpp

index de60cabf4ada6645ca7d3102c73bbd0d21be371a..e1b5ad3563b61b68b7705cd70b3d3c148fbc6c01 100644 (file)
@@ -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
index 5d4e6b0614655810b28814677b5c496ccd4937c3..a86222925545bef367daa5a89a6e75efb54b43da 100644 (file)
     #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