mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
Tidied for consistency
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29262 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cb1ee03381
commit
eacf55249b
2 changed files with 6 additions and 6 deletions
|
@ -42,7 +42,7 @@
|
||||||
#import "NSCallBacks.h"
|
#import "NSCallBacks.h"
|
||||||
#import "GSPrivate.h"
|
#import "GSPrivate.h"
|
||||||
|
|
||||||
static Class concreteClass = 0;
|
static Class concreteClass = Nil;
|
||||||
|
|
||||||
/* Here is the interface for the concrete class as used by the functions.
|
/* Here is the interface for the concrete class as used by the functions.
|
||||||
*/
|
*/
|
||||||
|
@ -299,9 +299,9 @@ NSCreateHashTableWithZone(
|
||||||
{
|
{
|
||||||
GSIMapTable table;
|
GSIMapTable table;
|
||||||
|
|
||||||
if (concreteClass == 0)
|
if (concreteClass == Nil)
|
||||||
{
|
{
|
||||||
[NSConcreteHashTable class];
|
[NSConcreteHashTable class]; // Force +initialize
|
||||||
}
|
}
|
||||||
table = (GSIMapTable)[concreteClass allocWithZone: zone];
|
table = (GSIMapTable)[concreteClass allocWithZone: zone];
|
||||||
|
|
||||||
|
@ -808,7 +808,7 @@ const NSHashTableCallBacks NSPointerToStructHashCallBacks =
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
if (concreteClass == nil)
|
if (concreteClass == Nil)
|
||||||
{
|
{
|
||||||
concreteClass = [NSConcreteHashTable class];
|
concreteClass = [NSConcreteHashTable class];
|
||||||
}
|
}
|
||||||
|
|
|
@ -439,7 +439,7 @@ NSCreateMapTableWithZone(
|
||||||
|
|
||||||
if (concreteClass == Nil)
|
if (concreteClass == Nil)
|
||||||
{
|
{
|
||||||
concreteClass = [NSConcreteMapTable class];
|
[NSConcreteMapTable class]; // Force +initialize
|
||||||
}
|
}
|
||||||
table = (GSIMapTable)[concreteClass allocWithZone: zone];
|
table = (GSIMapTable)[concreteClass allocWithZone: zone];
|
||||||
|
|
||||||
|
@ -1133,7 +1133,7 @@ const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks =
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
if (concreteClass == Nil)
|
if (concreteClass == 0)
|
||||||
{
|
{
|
||||||
concreteClass = [NSConcreteMapTable class];
|
concreteClass = [NSConcreteMapTable class];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue