mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Tiny optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4132 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3018140370
commit
893d61d557
1 changed files with 5 additions and 2 deletions
|
@ -506,8 +506,11 @@ static NSDictionary* nsmapping = nil;
|
||||||
|
|
||||||
- (void) setBackgroundColor: (NSColor *)aColor
|
- (void) setBackgroundColor: (NSColor *)aColor
|
||||||
{
|
{
|
||||||
[_color autorelease];
|
if (_color != aColor)
|
||||||
_color = [aColor retain];
|
{
|
||||||
|
[_color release];
|
||||||
|
_color = [aColor retain];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSColor *)backgroundColor
|
- (NSColor *)backgroundColor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue