Set the concrete class, when this isn't already set. This was causing

compilation problems on gui with gcc 4.4


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29257 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-01-11 11:12:02 +00:00
parent 87b9234f30
commit 07b2bd4491
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2010-01-11 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSConcreteMapTable.m (NSCreateMapTableWithZone): Set the
concreteClass, when this isn't already set.
2010-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSMapTable.m:

View file

@ -41,7 +41,7 @@
#import "NSConcretePointerFunctions.h"
#import "NSCallBacks.h"
static Class concreteClass = 0;
static Class concreteClass = Nil;
/* Here is the interface for the concrete class as used by the functions.
*/
@ -437,9 +437,9 @@ NSCreateMapTableWithZone(
{
GSIMapTable table;
if (concreteClass == 0)
if (concreteClass == Nil)
{
[NSConcreteMapTable class];
concreteClass = [NSConcreteMapTable class];
}
table = (GSIMapTable)[concreteClass allocWithZone: zone];
@ -1133,7 +1133,7 @@ const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks =
+ (void) initialize
{
if (concreteClass == nil)
if (concreteClass == Nil)
{
concreteClass = [NSConcreteMapTable class];
}