Fix ordering of initialisation of constant string class.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14632 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-10-02 13:29:54 +00:00
parent 43385f8be9
commit 80de3c6a30
2 changed files with 10 additions and 2 deletions

View file

@ -376,7 +376,6 @@ handle_printf_atsign (FILE *stream,
NSStringClass = self;
[self setVersion: 1];
NSMutableStringClass = [NSMutableString class];
NSConstantStringClass = [NXConstantString class];
NSDataClass = [NSData class];
GSPlaceholderStringClass = [GSPlaceholderString class];
GSStringClass = [GSString class];
@ -462,8 +461,16 @@ handle_printf_atsign (FILE *stream,
}
}
/**
* Return the class used to dtore constant strings (those ascii strings
* placed in ythe source code using the @"this is a string" syntax.
*/
+ (Class) constantStringClass
{
if (NSConstantStringClass == 0)
{
NSConstantStringClass = [NXConstantString class];
}
return NSConstantStringClass;
}