]> git.saurik.com Git - wxWidgets.git/commitdiff
dirty hack to fix deprecation warning when building wxMotif
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 14:36:46 +0000 (14:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 14:36:46 +0000 (14:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/tabg.h

index 6825b4226db5220c505940e2b53069bff2514fb2..4069044b1ed63941cc8acaccc20bf695d0f72637 100644 (file)
@@ -107,7 +107,7 @@ public:
 
   inline int GetNumberOfLayers() const { return m_layers.GetCount(); }
 #if WXWIN_COMPATIBILITY_2_4
-  inline wxList& GetLayers() { return (wxList&)m_layers; }
+  inline wxList& GetLayers() { return *(wxList *)&m_layers; }
 #else
   inline wxTabLayerList& GetLayers() { return m_layers; }
 #endif