mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +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
129fe28cbd
commit
ff50b2ad5b
1 changed files with 5 additions and 2 deletions
|
@ -506,8 +506,11 @@ static NSDictionary* nsmapping = nil;
|
|||
|
||||
- (void) setBackgroundColor: (NSColor *)aColor
|
||||
{
|
||||
[_color autorelease];
|
||||
_color = [aColor retain];
|
||||
if (_color != aColor)
|
||||
{
|
||||
[_color release];
|
||||
_color = [aColor retain];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSColor *)backgroundColor
|
||||
|
|
Loading…
Reference in a new issue