Tweaks for building with clang

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29254 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-01-10 14:38:16 +00:00
parent 83b5863735
commit 87c6d320c5
24 changed files with 106 additions and 54 deletions

View file

@ -114,6 +114,13 @@ extern BOOL GSScanDouble(unichar*, unsigned, double*);
@implementation GSXMLPListParser
static Class theClass = 0;
+ (void) initialize
{
theClass = NSClassFromString(@"GSSloppyXMLParser");
}
- (void) dealloc
{
RELEASE(key);
@ -129,7 +136,7 @@ extern BOOL GSScanDouble(unichar*, unsigned, double*);
{
if ((self = [super init]) != nil)
{
theParser = [[GSSloppyXMLParser alloc] initWithData: data];
theParser = [[theClass alloc] initWithData: data];
[theParser setDelegate: self];
opts = options;
}