mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-06-02 18:11:10 +00:00
Check for non-nill before removing a key from a dictionary (avoids useless warnings)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@6431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
747cc2ce03
commit
4804f49132
3 changed files with 5 additions and 2 deletions
|
@ -49,7 +49,7 @@ static char rcsId[] = "$Id$";
|
|||
[_associations removeObjectForKey:href__Key];
|
||||
[_associations removeObjectForKey:multipleSubmit__Key];
|
||||
[_associations removeObjectForKey:actionClass__Key];
|
||||
[_associations removeObjectForKey:directActionName];
|
||||
if (directActionName) [_associations removeObjectForKey:directActionName];
|
||||
#if !GSWEB_STRICT
|
||||
[_associations removeObjectForKey:disabled__Key];
|
||||
[_associations removeObjectForKey:enabled__Key];
|
||||
|
|
|
@ -40,7 +40,7 @@ static char rcsId[] = "$Id$";
|
|||
forKey:@"type"];
|
||||
[_associations removeObjectForKey:action__Key];
|
||||
[_associations removeObjectForKey:actionClass__Key];
|
||||
[_associations removeObjectForKey:directActionName];
|
||||
if (directActionName) [_associations removeObjectForKey:directActionName];
|
||||
|
||||
if (![_associations objectForKey:value__Key])
|
||||
[_associations setObject:[GSWAssociation associationWithValue:@"submit"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue