mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
fix bad commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32050 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
53e8554a8c
commit
35fea0d5da
1 changed files with 4 additions and 7 deletions
|
@ -1908,7 +1908,7 @@ NSLog(@"Creating empty user defaults database");
|
||||||
[_lock lock];
|
[_lock lock];
|
||||||
NS_DURING
|
NS_DURING
|
||||||
{
|
{
|
||||||
if (nil == _dictionaryRep)
|
if (_dictionaryRep == nil)
|
||||||
{
|
{
|
||||||
NSEnumerator *enumerator;
|
NSEnumerator *enumerator;
|
||||||
NSMutableDictionary *dictRep;
|
NSMutableDictionary *dictRep;
|
||||||
|
@ -1925,8 +1925,8 @@ NSLog(@"Creating empty user defaults database");
|
||||||
enumerator = [_searchList reverseObjectEnumerator];
|
enumerator = [_searchList reverseObjectEnumerator];
|
||||||
nImp = [enumerator methodForSelector: nextObjectSel];
|
nImp = [enumerator methodForSelector: nextObjectSel];
|
||||||
|
|
||||||
dictRep = [NSMutableDictionaryClass alloc];
|
dictRep = [NSMutableDictionaryClass allocWithZone: NSDefaultMallocZone()];
|
||||||
dictRep = [[dictRep initWithCapacity: 512] autorelease];
|
dictRep = [dictRep initWithCapacity: 512];
|
||||||
addImp = [dictRep methodForSelector: addSel];
|
addImp = [dictRep methodForSelector: addSel];
|
||||||
|
|
||||||
while ((obj = (*nImp)(enumerator, nextObjectSel)) != nil)
|
while ((obj = (*nImp)(enumerator, nextObjectSel)) != nil)
|
||||||
|
@ -1939,10 +1939,7 @@ NSLog(@"Creating empty user defaults database");
|
||||||
}
|
}
|
||||||
_dictionaryRep = [dictRep makeImmutableCopyOnFail: NO];
|
_dictionaryRep = [dictRep makeImmutableCopyOnFail: NO];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
rep = [[_dictionaryRep retain] autorelease];
|
rep = [[_dictionaryRep retain] autorelease];
|
||||||
}
|
|
||||||
[_lock unlock];
|
[_lock unlock];
|
||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue