[vlc-devel] commit: mozilla: use correct cast for VlcPlugin * (Jean-Paul Saman )
git version control
git at videolan.org
Tue May 26 01:21:01 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue May 5 13:31:17 2009 +0200| [443b94dc0b10d421b878f26ab6fa2ab71799f836] | committer: Jean-Paul Saman
mozilla: use correct cast for VlcPlugin *
(cherry picked from commit 893a64a49e3eda34e06da3cdcb16c79f45a9592c)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=443b94dc0b10d421b878f26ab6fa2ab71799f836
---
projects/mozilla/vlcshell.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index 955235d..151c615 100644
--- a/projects/mozilla/vlcshell.cpp
+++ b/projects/mozilla/vlcshell.cpp
@@ -167,8 +167,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
return false;
}
- VlcPlugin *p_plugin = (VlcPlugin*)instance->pdata;
-
+ VlcPlugin* p_plugin = reinterpret_cast<VlcPlugin*>(instance->pdata);
if( p_plugin == NULL )
{
return false;
More information about the vlc-devel
mailing list