From: Robert Roebling Date: Sat, 13 Oct 2007 11:57:48 +0000 (+0000) Subject: define typesafe wxVariantList (to be used by wxVariant instead of wxList X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7e6b478087cfbc8ce55775014ad187359a9ff878?hp=3586d10f7287c92fc988229c384346f0a04c42ac define typesafe wxVariantList (to be used by wxVariant instead of wxList git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/variant.h b/include/wx/variant.h index 9d8a681912..bee2b4a646 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -104,6 +104,10 @@ private: * wxVariant can store any kind of data, but has some basic types * built in. */ + +class WXDLLIMPEXP_FWD_BASE wxVariant; + +WX_DECLARE_LIST_WITH_DECL(wxVariant, wxVariantList, class WXDLLIMPEXP_BASE); class WXDLLIMPEXP_BASE wxVariant: public wxObject { diff --git a/src/common/variant.cpp b/src/common/variant.cpp index b0053916cf..f30f580dbb 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -52,6 +52,9 @@ using namespace std ; wxVariant WXDLLIMPEXP_BASE wxNullVariant; +#include "wx/listimpl.cpp" +WX_DEFINE_LIST(wxVariantList); + /* * wxVariant */