mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-18 11:41:06 +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
ccd0185139
commit
ed7a44c543
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>
|
2007-03-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSPathUtilities.m: NSTemporaryDirectory() don't raise
|
* Source/NSPathUtilities.m: NSTemporaryDirectory() don't raise
|
||||||
|
|
|
@ -150,10 +150,14 @@ static Class NSDate_class;
|
||||||
invocation: (NSInvocation*)invocation
|
invocation: (NSInvocation*)invocation
|
||||||
repeats: (BOOL)f
|
repeats: (BOOL)f
|
||||||
{
|
{
|
||||||
id t = [self timerWithTimeInterval: ti
|
id t = [[self alloc] initWithFireDate: nil
|
||||||
invocation: invocation
|
interval: ti
|
||||||
repeats: f];
|
target: invocation
|
||||||
|
selector: NULL
|
||||||
|
userInfo: nil
|
||||||
|
repeats: f];
|
||||||
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
||||||
|
RELEASE(t);
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,12 +175,14 @@ static Class NSDate_class;
|
||||||
userInfo: (id)info
|
userInfo: (id)info
|
||||||
repeats: (BOOL)f
|
repeats: (BOOL)f
|
||||||
{
|
{
|
||||||
id t = [self timerWithTimeInterval: ti
|
id t = [[self alloc] initWithFireDate: nil
|
||||||
target: object
|
interval: ti
|
||||||
selector: selector
|
target: object
|
||||||
userInfo: info
|
selector: selector
|
||||||
repeats: f];
|
userInfo: info
|
||||||
|
repeats: f];
|
||||||
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
||||||
|
RELEASE(t);
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue