vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Fri Aug 13 20:29:44 2010 +0200| [c574f41b2880a489f4248f0546c24aabc292caa1] | committer: Jean-Baptiste Kempf
Win32 globalhotkeys: kill warnings > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c574f41b2880a489f4248f0546c24aabc292caa1 --- modules/control/globalhotkeys/win32.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/control/globalhotkeys/win32.c b/modules/control/globalhotkeys/win32.c index e5baeaf..8e3aeaf 100644 --- a/modules/control/globalhotkeys/win32.c +++ b/modules/control/globalhotkeys/win32.c @@ -168,7 +168,7 @@ static void *Thread( void *p_data ) (LONG_PTR)p_intf ); /* Registering of Hotkeys */ - for( struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys; + for( const struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys; p_hotkey->psz_action != NULL; p_hotkey++ ) { @@ -262,7 +262,7 @@ static void *Thread( void *p_data ) DispatchMessage( &message ); /* Unregistering of Hotkeys */ - for( struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys; + for( const struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys; p_hotkey->psz_action != NULL; p_hotkey++ ) { @@ -296,7 +296,7 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam, LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA ); intf_thread_t *p_intf = (intf_thread_t*)ret; - struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys; + const struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys; if( !GlobalGetAtomNameA( wParam, psz_atomName, sizeof( psz_atomName ) ) ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
