o use GSWIntToNSString instead of string formatting

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2004-09-01 14:49:27 +00:00
parent b8fe598297
commit 0963016bcd
5 changed files with 16 additions and 19 deletions

View file

@ -466,7 +466,7 @@ RCS_ID("$Id$")
{
NSArray* adaptors = [[GSWApplication application]adaptors];
if ([adaptors count]>0)
serverPort = [NSString stringWithFormat:@"%d",[(GSWAdaptor*)[adaptors objectAtIndex:0] port]];
serverPort = GSWIntToNSString([(GSWAdaptor*)[adaptors objectAtIndex:0] port]);
}
return serverPort;
}
@ -2596,7 +2596,7 @@ into
applicationNumber=[gswinst intValue];
};
if (applicationNumber>=0)
[dict setObject:[NSString stringWithFormat:@"%d",applicationNumber]
[dict setObject:GSWIntToNSString(applicationNumber)
forKey:GSWKey_InstanceID[GSWebNamingConv]];
ASSIGN(_uriElements,[NSDictionary dictionaryWithDictionary:dict]);