From 0a865e3d000f1d16fbb4c8564c444753f63e639a Mon Sep 17 00:00:00 2001 From: ritsuka Date: Fri, 31 Oct 2014 06:58:45 +0000 Subject: MacGui: fixed a warning in HBOutputRedirect and removed an unused ivar. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6488 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBOutputRedirect.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'macosx/HBOutputRedirect.m') diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m index f1ff10e58..7239fe3cd 100644 --- a/macosx/HBOutputRedirect.m +++ b/macosx/HBOutputRedirect.m @@ -77,7 +77,7 @@ int stderrwrite(void *inFD, const char *buffer, int size) * Adds specified object as listener for this output. Method @c stdoutRedirect: * or @c stderrRedirect: of the listener is called to redirect the output. */ -- (void)addListener:(id)aListener +- (void)addListener:(id )aListener { NSAssert2([aListener respondsToSelector:forwardingSelector], @"Object %@ doesn't respond to selector \"%@\"", aListener, NSStringFromSelector(forwardingSelector)); @@ -94,7 +94,7 @@ int stderrwrite(void *inFD, const char *buffer, int size) /** * Stops forwarding for this output to the specified listener object. */ -- (void)removeListener:(id)aListener +- (void)removeListener:(id )aListener { if ([listeners containsObject:aListener]) { @@ -138,7 +138,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) forwardingSelector = aSelector; stream = aStream; oldWriteFunc = NULL; - lock = [[NSLock alloc] init]; } return self; } -- cgit v1.2.3