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,12 +2853,21 @@ 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
{
if (o == nil)
{
[objects removeObjectForKey: k];
}
else
{ {
[objects setObject: o forKey: k]; [objects setObject: o forKey: k];
} }
}
/** /**
* Sets a parameter of this header ... converts name to lowercase and * Sets a parameter of this header ... converts name to lowercase and