mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
87b9234f30
commit
07b2bd4491
2 changed files with 9 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue