diff options
author | ritsuka <[email protected]> | 2014-10-31 06:58:45 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-10-31 06:58:45 +0000 |
commit | 0a865e3d000f1d16fbb4c8564c444753f63e639a (patch) | |
tree | 52fa817852a32682f15d569d1ece945f0ff1b48d /macosx/HBOutputRedirect.m | |
parent | 507b213cd091dc713c30ea4792096a3ea5074256 (diff) |
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
Diffstat (limited to 'macosx/HBOutputRedirect.m')
-rw-r--r-- | macosx/HBOutputRedirect.m | 5 |
1 files changed, 2 insertions, 3 deletions
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 <HBOutputRedirectListening>)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 <HBOutputRedirectListening>)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; } |