From bf30fa7490e2febcac152c404d357a11626e0143 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Mar 2018 19:14:52 +0100 Subject: [PATCH] Include required headers explicitly in the widgets sample Don't rely on wx/treebook.h pulling in wx/treectrl.h and wx/textctrl.h, forward declare or include the headers declaring the classes from these headers explicitly where needed. --- samples/widgets/widgets.cpp | 1 + samples/widgets/widgets.h | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 90ac92a059..12e471fe26 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -49,6 +49,7 @@ #include "wx/numdlg.h" #include "wx/textdlg.h" #include "wx/imaglist.h" +#include "wx/treectrl.h" #include "wx/wupdlock.h" #include "wx/textcompleter.h" diff --git a/samples/widgets/widgets.h b/samples/widgets/widgets.h index b228fe110b..65d7708133 100644 --- a/samples/widgets/widgets.h +++ b/samples/widgets/widgets.h @@ -41,6 +41,7 @@ class WXDLLIMPEXP_FWD_CORE wxCheckBox; class WXDLLIMPEXP_FWD_CORE wxSizer; class WXDLLIMPEXP_FWD_CORE wxImageList; class WXDLLIMPEXP_FWD_CORE wxTextCtrl; +class WXDLLIMPEXP_FWD_CORE wxTextEntryBase; class WXDLLIMPEXP_FWD_CORE WidgetsBookCtrl; class WidgetsPageInfo;