Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Fix all remaining compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffrowley committed Sep 22, 2012
1 parent e5d6ebd commit 625cc00
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Three20Core/Headers/TTGlobalCorePaths.h
Expand Up @@ -62,4 +62,4 @@ NSString* TTPathForDocumentsResource(NSString* relativePath);
/**
* @return The caches path concatenated with the given relative path.
*/
NSString* TTPathForCachesResource(NSString* relativePath);
NSString* TTPathForCachesResource(NSString* relativePath);
8 changes: 3 additions & 5 deletions src/Three20Network/Sources/TTURLRequest.m
Expand Up @@ -190,11 +190,9 @@ - (void)appendImageData:(NSData*)data
[body appendData:[[NSString
stringWithFormat:@"Content-Length: %d\r\n", data.length]
dataUsingEncoding:_charsetForMultipart]];
[body appendData:[[NSString
stringWithString:@"Content-Type: image/jpeg\r\n\r\n"]
dataUsingEncoding:_charsetForMultipart]];
[body appendData:[@"Content-Type: image/jpeg\r\n\r\n" dataUsingEncoding:_charsetForMultipart]];
[body appendData:data];
[body appendData:[endLine dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[endLine dataUsingEncoding:NSUTF8StringEncoding]];
}


Expand Down Expand Up @@ -313,7 +311,7 @@ - (NSString*)contentType {
if (_multiPartForm) {
return [NSString stringWithFormat:@"multipart/form-data; boundary=%@", kStringBoundary];
} else {
return [NSString stringWithFormat:@"application/x-www-form-urlencoded", kStringBoundary];
return [NSString stringWithFormat:@"application/x-www-form-urlencoded"];
}

} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Three20UI/Sources/TTTableHeaderDragRefreshView.m
Expand Up @@ -163,7 +163,7 @@ - (void)setUpdateDate:(NSDate*)newDate {
[_lastUpdatedDate release];
_lastUpdatedDate = [newDate retain];
}

NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
[formatter setDateStyle:NSDateFormatterShortStyle];
[formatter setTimeStyle:NSDateFormatterShortStyle];
Expand Down
2 changes: 1 addition & 1 deletion src/Three20UI/Sources/UIWebViewAdditions.m
Expand Up @@ -55,7 +55,7 @@ - (CGRect)frameOfElement:(NSString*)query {
return CGRectMake(x, y, width, height);
}

#ifdef DEBUG
#ifdef DEBUG_TOUCHES

///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)simulateTapElement:(NSString*)query {
Expand Down
2 changes: 1 addition & 1 deletion src/extThree20XML/Headers/TTURLXMLResponse.h
Expand Up @@ -23,7 +23,7 @@
* This particular implementation uses a strict XML parser (NSXMLParser). It is not designed to
* parse HTML pages that are likely to have invalid markup.
*/
@interface TTURLXMLResponse : NSObject <TTURLResponse> {
@interface TTURLXMLResponse : NSObject <TTURLResponse, NSXMLParserDelegate> {
id _rootObject;
BOOL _isRssFeed;
}
Expand Down
2 changes: 1 addition & 1 deletion src/extThree20XML/Headers/TTXMLParser.h
Expand Up @@ -62,7 +62,7 @@ extern NSString* kCommonXMLType_Unknown;
* not been optimized for speed or memory usage, and has only been tested with documents less than
* one MB (megabyte) in size.
*/
@interface TTXMLParser : NSXMLParser {
@interface TTXMLParser : NSXMLParser<NSXMLParserDelegate> {
@private
id _rootObject;

Expand Down

0 comments on commit 625cc00

Please sign in to comment.