mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Obscure thread-safety fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27209 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
61c03561d7
commit
b313d1b576
4 changed files with 30 additions and 10 deletions
|
@ -108,18 +108,16 @@ static SEL appSel;
|
|||
{
|
||||
if (self == [NSDictionary class])
|
||||
{
|
||||
NSArray_class = [NSArray class];
|
||||
NSDictionaryClass = [NSDictionary class];
|
||||
NSMutableDictionaryClass = [NSMutableDictionary class];
|
||||
GSDictionaryClass = [GSDictionary class];
|
||||
GSMutableDictionaryClass = [GSMutableDictionary class];
|
||||
|
||||
eqSel = @selector(isEqual:);
|
||||
nxtSel = @selector(nextObject);
|
||||
objSel = @selector(objectForKey:);
|
||||
remSel = @selector(removeObjectForKey:);
|
||||
setSel = @selector(setObject:forKey:);
|
||||
appSel = @selector(appendString:);
|
||||
NSArray_class = [NSArray class];
|
||||
NSDictionaryClass = self;
|
||||
GSDictionaryClass = [GSDictionary class];
|
||||
[NSMutableDictionary class];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1123,6 +1121,8 @@ compareIt(id o1, id o2, void* context)
|
|||
{
|
||||
if (self == [NSMutableDictionary class])
|
||||
{
|
||||
NSMutableDictionaryClass = self;
|
||||
GSMutableDictionaryClass = [GSMutableDictionary class];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue