[vlc-devel] commit: mozilla: use correct cast for VlcPlugin * (Jean-Paul Saman )
git version control
git at videolan.org
Tue May 12 14:26:51 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue May 5 13:31:17 2009 +0200| [893a64a49e3eda34e06da3cdcb16c79f45a9592c] | committer: Jean-Paul Saman
mozilla: use correct cast for VlcPlugin *
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=893a64a49e3eda34e06da3cdcb16c79f45a9592c
---
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