[vlc-devel] commit: Fix wx build (Alexis Ballier )

git version control git at videolan.org
Thu May 22 23:29:50 CEST 2008


vlc | branch: master | Alexis Ballier <aballier at gentoo.org> | Thu May 22 23:26:46 2008 +0200| [3d240f51c51b3e7a2c74c37b70b64bf29c8a9e93]

Fix wx build

The ugly casting is correct wrt the vlc_object_t inheritance
Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d240f51c51b3e7a2c74c37b70b64bf29c8a9e93
---

 modules/gui/wxwidgets/dialogs/preferences.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/wxwidgets/dialogs/preferences.cpp b/modules/gui/wxwidgets/dialogs/preferences.cpp
index a585787..edf7de7 100644
--- a/modules/gui/wxwidgets/dialogs/preferences.cpp
+++ b/modules/gui/wxwidgets/dialogs/preferences.cpp
@@ -586,7 +586,7 @@ PrefsTreeCtrl::PrefsTreeCtrl( wxWindow *_p_parent, intf_thread_t *_p_intf,
 #endif
         config_data->i_type = TYPE_MODULE;
         config_data->p_module = config_data->b_submodule ?
-            p_module->p_parent : p_module;
+            ((module_t*)((vlc_object_t*)p_module)->p_parent) : p_module;
         config_data->psz_help = NULL;
 
         /* WXMSW doesn't know image -1 ... FIXME */




More information about the vlc-devel mailing list