mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
simplify GC ... don't need to add new zone
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27783 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be86199404
commit
0e2e58bf87
18 changed files with 59 additions and 67 deletions
|
@ -228,7 +228,7 @@ static Class mutableSetClass;
|
|||
(*imp)(aCoder, sel, @encode(unsigned), &count);
|
||||
|
||||
#if GS_WITH_GC
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSScannedMallocZone(), count);
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSIMapStrongKeyAndVal, count);
|
||||
#else
|
||||
GSIMapInitWithZoneAndCapacity(&map, [self zone], count);
|
||||
#endif
|
||||
|
@ -247,7 +247,7 @@ static Class mutableSetClass;
|
|||
unsigned i;
|
||||
|
||||
#if GS_WITH_GC
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSScannedMallocZone(), c);
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSIMapStrongKeyAndVal, c);
|
||||
#else
|
||||
GSIMapInitWithZoneAndCapacity(&map, [self zone], c);
|
||||
#endif
|
||||
|
@ -585,7 +585,7 @@ static Class mutableSetClass;
|
|||
- (id) initWithCapacity: (unsigned)cap
|
||||
{
|
||||
#if GS_WITH_GC
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSScannedMallocZone(), cap);
|
||||
GSIMapInitWithZoneAndCapacity(&map, GSIMapStrongKeyAndVal, cap);
|
||||
#else
|
||||
GSIMapInitWithZoneAndCapacity(&map, [self zone], cap);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue