[vlc-commits] commit: macosx: return a value in a non-void method ( =?UTF-8?Q?Felix=20Paul=20K=C3=BChne=20?=)
git at videolan.org
git at videolan.org
Tue Dec 28 14:25:44 CET 2010
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Dec 4 17:18:20 2010 +0100| [ecfb93fb38ffcb6965cd10031ddbb51156412b94] | committer: Felix Paul Kühne
macosx: return a value in a non-void method
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecfb93fb38ffcb6965cd10031ddbb51156412b94
---
modules/gui/macosx/misc.m | 4 ++--
modules/gui/macosx/playlist.m | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index 4d77a38..05d078d 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -255,7 +255,7 @@ static NSMutableArray *blackoutWindows = NULL;
}
invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(close)]];
- [invoc setTarget: (id)super];
+ [invoc setTarget: self];
if (![self isVisible] || [self alphaValue] == 0.0)
{
@@ -269,7 +269,7 @@ static NSMutableArray *blackoutWindows = NULL;
- (void)orderOut: (id)sender animate: (BOOL)animate
{
NSInvocation *invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(orderOut:)]];
- [invoc setTarget: (id)super];
+ [invoc setTarget: self];
[invoc setArgument: sender atIndex: 0];
[self orderOut: sender animate: animate callback: invoc];
}
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 7f6441b..01197cf 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -706,7 +706,7 @@
inNode: (playlist_item_t *)p_node
checkItemExistence:(BOOL)b_check
{
- [self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO];
+ return [self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO];
}
/* This method is useful for instance to remove the selected children of an
More information about the vlc-commits
mailing list