mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* 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
This commit is contained in:
parent
e65024ffb3
commit
2162ad5edd
2 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
||||||
2003-07-11 David Ayers <d.ayers@inode.at>
|
2003-07-11 David Ayers <d.ayers@inode.at>
|
||||||
|
|
||||||
* 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 <rfm@gnu.org>
|
2003-07-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -1027,7 +1027,7 @@ static NSMapTable *nodeNames = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NSZoneFree(NSDefaultMallocZone(), base);
|
NSZoneFree(NSDefaultMallocZone(), base);
|
||||||
str = [[NSString alloc] initWithCharacters: map length: len];
|
str = [[NSString_class alloc] initWithCharacters: map length: len];
|
||||||
AUTORELEASE(str);
|
AUTORELEASE(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1949,7 +1949,7 @@ static NSString *endMarker = @"At end of incremental parse";
|
||||||
- (id) initWithSAXHandler: (GSSAXHandler*)handler
|
- (id) initWithSAXHandler: (GSSAXHandler*)handler
|
||||||
withContentsOfFile: (NSString*)path
|
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");
|
NSLog(@"Bad file path passed to initialize GSXMLParser");
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
|
@ -2237,7 +2237,7 @@ static NSString *endMarker = @"At end of incremental parse";
|
||||||
{
|
{
|
||||||
const unsigned char *file;
|
const unsigned char *file;
|
||||||
|
|
||||||
if ([src isKindOfClass: [NSString class]])
|
if ([src isKindOfClass: NSString_class])
|
||||||
{
|
{
|
||||||
file = [src lossyCString];
|
file = [src lossyCString];
|
||||||
}
|
}
|
||||||
|
@ -3546,7 +3546,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
||||||
}
|
}
|
||||||
- (NSString *) description
|
- (NSString *) description
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"%f", [self doubleValue]];
|
return [NSString_class stringWithFormat: @"%f", [self doubleValue]];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -3557,11 +3557,11 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
||||||
- (NSString *) stringValue
|
- (NSString *) stringValue
|
||||||
{
|
{
|
||||||
xmlChar *string = ((xmlXPathObject*)_lib)->stringval;
|
xmlChar *string = ((xmlXPathObject*)_lib)->stringval;
|
||||||
return [NSString stringWithUTF8String: string];
|
return [NSString_class stringWithUTF8String: string];
|
||||||
}
|
}
|
||||||
- (NSString *) description
|
- (NSString *) description
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"%@", [self stringValue]];
|
return [NSString_class stringWithFormat: @"%@", [self stringValue]];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -3621,7 +3621,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
||||||
}
|
}
|
||||||
- (NSString *) description
|
- (NSString *) description
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"NodeSet (count %d)", [self count]];
|
return [NSString_class stringWithFormat: @"NodeSet (count %d)", [self count]];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue