From 2162ad5eddcfcae1d25d8cc9dde3ddec9dd572c3 Mon Sep 17 00:00:00 2001 From: ayers Date: Fri, 11 Jul 2003 18:53:48 +0000 Subject: [PATCH] * Source/Additions/GSXML.m: Use cached NSString class variable. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17190 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 3 ++- Source/Additions/GSXML.m | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 126af7691..2d0e5908e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2003-07-11 David Ayers - * Source/GNUmakefile: Make GNUstep.h public. + * Source/GNUmakefile: Make GNUstep.h public. + * Source/Additions/GSXML.m: Use cached NSString class variable. 2003-07-11 Richard Frith-Macdonald diff --git a/Source/Additions/GSXML.m b/Source/Additions/GSXML.m index 175daaacc..7a8db20c2 100644 --- a/Source/Additions/GSXML.m +++ b/Source/Additions/GSXML.m @@ -1027,7 +1027,7 @@ static NSMapTable *nodeNames = 0; } } NSZoneFree(NSDefaultMallocZone(), base); - str = [[NSString alloc] initWithCharacters: map length: len]; + str = [[NSString_class alloc] initWithCharacters: map length: len]; AUTORELEASE(str); } } @@ -1949,7 +1949,7 @@ static NSString *endMarker = @"At end of incremental parse"; - (id) initWithSAXHandler: (GSSAXHandler*)handler withContentsOfFile: (NSString*)path { - if (path == nil || [path isKindOfClass: [NSString class]] == NO) + if (path == nil || [path isKindOfClass: NSString_class] == NO) { NSLog(@"Bad file path passed to initialize GSXMLParser"); RELEASE(self); @@ -2237,7 +2237,7 @@ static NSString *endMarker = @"At end of incremental parse"; { const unsigned char *file; - if ([src isKindOfClass: [NSString class]]) + if ([src isKindOfClass: NSString_class]) { file = [src lossyCString]; } @@ -3546,7 +3546,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...) } - (NSString *) description { - return [NSString stringWithFormat: @"%f", [self doubleValue]]; + return [NSString_class stringWithFormat: @"%f", [self doubleValue]]; } @end @@ -3557,11 +3557,11 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...) - (NSString *) stringValue { xmlChar *string = ((xmlXPathObject*)_lib)->stringval; - return [NSString stringWithUTF8String: string]; + return [NSString_class stringWithUTF8String: string]; } - (NSString *) description { - return [NSString stringWithFormat: @"%@", [self stringValue]]; + return [NSString_class stringWithFormat: @"%@", [self stringValue]]; } @end @@ -3621,7 +3621,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...) } - (NSString *) description { - return [NSString stringWithFormat: @"NodeSet (count %d)", [self count]]; + return [NSString_class stringWithFormat: @"NodeSet (count %d)", [self count]]; } @end