]> git.saurik.com Git - wxWidgets.git/commitdiff
define typesafe wxVariantList (to be used by wxVariant instead of wxList
authorRobert Roebling <robert@roebling.de>
Sat, 13 Oct 2007 11:57:48 +0000 (11:57 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 13 Oct 2007 11:57:48 +0000 (11:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/variant.h
src/common/variant.cpp

index 9d8a6819127e3a2215922c2c45f4e82a39378895..bee2b4a6465281e47b151cd168971afdd7dc18b4 100644 (file)
@@ -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
 {
index b0053916cf4f62c60e06b2d6b379b83d297df559..f30f580dbbe7038a19d1e32af5fbd14795d611e9 100644 (file)
@@ -52,6 +52,9 @@ using namespace std ;
 wxVariant WXDLLIMPEXP_BASE wxNullVariant;
 
 
+#include "wx/listimpl.cpp"
+WX_DEFINE_LIST(wxVariantList);
+
 /*
  * wxVariant
  */