Minor tidyup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15171 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-11-28 13:44:07 +00:00
parent 627c7abbb8
commit 4bbc3d26c1

View file

@ -2853,11 +2853,20 @@ static NSCharacterSet *tokenSet = nil;
/** /**
* Method to store specific information for particular types of * Method to store specific information for particular types of
* header. This is used for non-standard parts of headers. * header. This is used for non-standard parts of headers.<br />
* Setting a nil value for o will remove any existing value set
* using the k as its key.
*/ */
- (void) setObject: (id)o forKey: (NSString*)k - (void) setObject: (id)o forKey: (NSString*)k
{ {
[objects setObject: o forKey: k]; if (o == nil)
{
[objects removeObjectForKey: k];
}
else
{
[objects setObject: o forKey: k];
}
} }
/** /**