mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 01:01:19 +00:00
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:
parent
b8fe598297
commit
0963016bcd
5 changed files with 16 additions and 19 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue