]> git.saurik.com Git - wxWidgets.git/commitdiff
gcc fixes
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 7 Jan 2011 22:52:46 +0000 (22:52 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 7 Jan 2011 22:52:46 +0000 (22:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/xti.h
include/wx/xti2.h
src/common/xti.cpp

index 15abee18a23497481dfe9e9d8f07bd885926e4e9..ba8183a93adde4e0a688a84394bb0bdc7851df09 100644 (file)
@@ -50,11 +50,13 @@ class WXDLLIMPEXP_FWD_BASE wxHashTable_Node;
 class WXDLLIMPEXP_FWD_BASE wxStringToAnyHashMap;
 class WXDLLIMPEXP_FWD_BASE wxPropertyInfoMap;
 class WXDLLIMPEXP_FWD_BASE wxPropertyAccessor;
+class WXDLLIMPEXP_FWD_BASE wxObjectAllocatorAndCreator;
+class WXDLLIMPEXP_FWD_BASE wxObjectAllocator;
+
 
 #define wx_dynamic_cast(t, x) dynamic_cast<t>(x)
 
 #include "wx/xtitypes.h"
-#include "wx/xtictor.h"
 #include "wx/xtihandler.h"
 
 // ----------------------------------------------------------------------------
@@ -205,9 +207,8 @@ public:
     // direct construction call for classes that cannot construct instances via alloc/create
     wxObject *ConstructObject(int ParamCount, wxAny *Params) const;
 
-    bool NeedsDirectConstruction() const 
-        { return wx_dynamic_cast(wxObjectAllocator*, m_constructor) != NULL; }
-
+    bool NeedsDirectConstruction() const;
+    
     const wxChar       *GetClassName() const 
         { return m_className; }
     const wxChar       *GetBaseClassName1() const
@@ -464,28 +465,5 @@ private:
 #define wxDECLARE_ABSTRACT_CLASS(name)    _DECLARE_DYNAMIC_CLASS(name)
 #define wxCLASSINFO(name)                 (&name::ms_classInfo)
 
-// --------------------------------------------------------------------------
-// Collection Support
-// --------------------------------------------------------------------------
-
-template<typename iter, typename collection_t > void wxListCollectionToAnyList( 
-    const collection_t& coll, wxAnyList &value )
-{
-    for ( collection_t::compatibility_iterator current = coll.GetFirst(); current; 
-        current = current->GetNext() )
-    {
-        value.Append( new wxAny(current->GetData()) );
-    }
-}
-
-template<typename collection_t> void wxArrayCollectionToVariantArray( 
-    const collection_t& coll, wxAnyList &value )
-{
-    for( size_t i = 0; i < coll.GetCount(); i++ )
-    {
-        value.Append( new wxAny(coll[i]) );
-    }
-}
-
 #endif  // wxUSE_EXTENDED_RTTI
 #endif // _WX_XTIH__
index 24d5cb3203bd7ffc1c41e345c8cc7b0251338b78..5786a86f936897c615bd675bdefac83d6b6f8bcd 100644 (file)
@@ -58,6 +58,7 @@ private :
 };
 
 #include "wx/xtiprop.h"
+#include "wx/xtictor.h"
 
 // ----------------------------------------------------------------------------
 // wxIMPLEMENT class macros for concrete classes
@@ -239,6 +240,29 @@ template<typename T>
 void wxFromStringConverter( const wxString &s, wxAny &v) 
 { T d; wxStringReadValue(s, d); v = wxAny(d); }
 
+// --------------------------------------------------------------------------
+// Collection Support
+// --------------------------------------------------------------------------
+
+template<typename iter, typename collection_t > void wxListCollectionToAnyList( 
+                                                                               const collection_t& coll, wxAnyList &value )
+{
+    for ( iter current = coll.GetFirst(); current; 
+         current = current->GetNext() )
+    {
+        value.Append( new wxAny(current->GetData()) );
+    }
+}
+
+template<typename collection_t> void wxArrayCollectionToVariantArray( 
+                                                                     const collection_t& coll, wxAnyList &value )
+{
+    for( size_t i = 0; i < coll.GetCount(); i++ )
+    {
+        value.Append( new wxAny(coll[i]) );
+    }
+}
+
 #endif
 
 #endif // _WX_XTIH2__
index bd9fd18cca834411f7fc53c8b999de3109ccf82b..60b92656e238a227a372106a14a73a529f799c08 100644 (file)
@@ -732,6 +732,11 @@ wxAny wxClassInfo::ObjectPtrToAny( wxObject* obj) const
     return m_objectToVariantConverter(obj);
 }
 
+bool wxClassInfo::NeedsDirectConstruction() const 
+{ 
+    return wx_dynamic_cast(wxObjectAllocator*, m_constructor) != NULL; 
+}
+
 // ----------------------------------------------------------------------------
 // wxDynamicObject support
 // ----------------------------------------------------------------------------