From: Vadim Zeitlin Date: Sun, 28 Aug 2005 14:36:46 +0000 (+0000) Subject: dirty hack to fix deprecation warning when building wxMotif X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e7cd2f52b97ad4191511343aa418e3f6355c165 dirty hack to fix deprecation warning when building wxMotif git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/tabg.h b/include/wx/generic/tabg.h index 6825b4226d..4069044b1e 100644 --- a/include/wx/generic/tabg.h +++ b/include/wx/generic/tabg.h @@ -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