mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Updates for 10.5 API changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
845a701069
commit
24d43481a8
138 changed files with 2094 additions and 1536 deletions
|
@ -120,7 +120,7 @@ typedef struct {
|
|||
v = [contentType parameterForKey: @"charset"];
|
||||
ASSIGNCOPY(this->textEncodingName, v);
|
||||
}
|
||||
- (void) _setStatusCode: (int)code text: (NSString*)text
|
||||
- (void) _setStatusCode: (NSInteger)code text: (NSString*)text
|
||||
{
|
||||
this->statusCode = code;
|
||||
ASSIGNCOPY(this->statusText, text);
|
||||
|
@ -233,7 +233,7 @@ typedef struct {
|
|||
*/
|
||||
- (id) initWithURL: (NSURL *)URL
|
||||
MIMEType: (NSString *)MIMEType
|
||||
expectedContentLength: (int)length
|
||||
expectedContentLength: (NSInteger)length
|
||||
textEncodingName: (NSString *)name
|
||||
{
|
||||
if ((self = [super init]) != nil)
|
||||
|
@ -320,7 +320,7 @@ typedef struct {
|
|||
|
||||
@implementation NSHTTPURLResponse
|
||||
|
||||
+ (NSString *) localizedStringForStatusCode: (int)statusCode
|
||||
+ (NSString *) localizedStringForStatusCode: (NSInteger)statusCode
|
||||
{
|
||||
// FIXME ... put real responses in here
|
||||
return [NSString stringWithFormat: @"%d", statusCode];
|
||||
|
@ -331,7 +331,7 @@ typedef struct {
|
|||
return AUTORELEASE([this->headers copy]);
|
||||
}
|
||||
|
||||
- (int) statusCode
|
||||
- (NSInteger) statusCode
|
||||
{
|
||||
return this->statusCode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue