mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
d4c5540da9
commit
449471de04
1 changed files with 11 additions and 2 deletions
|
@ -2853,11 +2853,20 @@ static NSCharacterSet *tokenSet = nil;
|
|||
|
||||
/**
|
||||
* 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
|
||||
{
|
||||
[objects setObject: o forKey: k];
|
||||
if (o == nil)
|
||||
{
|
||||
[objects removeObjectForKey: k];
|
||||
}
|
||||
else
|
||||
{
|
||||
[objects setObject: o forKey: k];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue