[vlc-commits] macosx: fixed 2 long standing compilation warnings

Felix Paul Kühne git at videolan.org
Sun Feb 19 21:36:53 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 19 21:35:17 2012 +0100| [91457387941dd1198f03527cbc6088dde7c00988] | committer: Felix Paul Kühne

macosx: fixed 2 long standing compilation warnings

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

 modules/gui/macosx/playlist.m |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 1d12022..820f40b 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -64,7 +64,7 @@
 
 - (NSMenu *)menuForEvent:(NSEvent *)o_event
 {
-    return( [[self delegate] menuForEvent: o_event] );
+    return( [(VLCPlaylist *)[self delegate] menuForEvent: o_event] );
 }
 
 - (void)keyDown:(NSEvent *)o_event
@@ -82,7 +82,7 @@
         case NSDeleteFunctionKey:
         case NSDeleteCharFunctionKey:
         case NSBackspaceCharacter:
-            [[self delegate] deleteItem:self];
+            [(VLCPlaylist *)[self delegate] deleteItem:self];
             break;
 
         case NSEnterCharacter:



More information about the vlc-commits mailing list