mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
minor optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24930 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b4c2574cc6
commit
ff9520eba5
2 changed files with 19 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-03-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimer.m: minor optimisation ... avoid unnecessary use of
|
||||
autorelease by doing explicit release instead.
|
||||
|
||||
2007-03-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPathUtilities.m: NSTemporaryDirectory() don't raise
|
||||
|
|
|
@ -150,10 +150,14 @@ static Class NSDate_class;
|
|||
invocation: (NSInvocation*)invocation
|
||||
repeats: (BOOL)f
|
||||
{
|
||||
id t = [self timerWithTimeInterval: ti
|
||||
invocation: invocation
|
||||
repeats: f];
|
||||
id t = [[self alloc] initWithFireDate: nil
|
||||
interval: ti
|
||||
target: invocation
|
||||
selector: NULL
|
||||
userInfo: nil
|
||||
repeats: f];
|
||||
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
||||
RELEASE(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
@ -171,12 +175,14 @@ static Class NSDate_class;
|
|||
userInfo: (id)info
|
||||
repeats: (BOOL)f
|
||||
{
|
||||
id t = [self timerWithTimeInterval: ti
|
||||
target: object
|
||||
selector: selector
|
||||
userInfo: info
|
||||
repeats: f];
|
||||
id t = [[self alloc] initWithFireDate: nil
|
||||
interval: ti
|
||||
target: object
|
||||
selector: selector
|
||||
userInfo: info
|
||||
repeats: f];
|
||||
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
||||
RELEASE(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue