+2005-07-27 Helge Hess <helge.hess@skyrix.com>
+
+ * NGImap4: fixed a gcc 4.0 warning (v4.5.231)
+
2005-07-26 Helge Hess <helge.hess@opengroupware.org>
* NGImap4: fixed a compatibility issue with Cocoa (v4.5.230)
+2005-07-27 Helge Hess <helge.hess@skyrix.com>
+
+ * NGImap4Connection.m: fixed gcc 4.0 warnings
+
2005-07-26 Helge Hess <helge.hess@opengroupware.org>
* NGImap4Connection.m: fixed a Cocoa compatibility issue with
/* process results */
- result = [result objectForKey:@"fetch"];
+ result = [(NSDictionary *)result objectForKey:@"fetch"];
if ([result count] == 0) { /* did not find part */
[self errorWithFormat:@"did not find part: %@", _partId];
return nil;
}
fetch = [result objectAtIndex:0];
- if ((body = [fetch objectForKey:@"body"]) == nil) {
+ if ((body = [(NSDictionary *)fetch objectForKey:@"body"]) == nil) {
[self errorWithFormat:@"did not find body in response: %@", result];
return nil;
}
- if ((result = [body objectForKey:@"data"]) == nil) {
+ if ((result = [(NSDictionary *)body objectForKey:@"data"]) == nil) {
[self errorWithFormat:@"did not find data in body: %@", fetch];
return nil;
}
if ((result = [self cachedHierarchyResults]) != nil) {
NSString *p;
- result = [result objectForKey:@"list"];
+ result = [(NSDictionary *)result objectForKey:@"list"];
p = [_url path];
#if __APPLE__
/* normalized results already have the / in front on libFoundation?! */
if ([p hasPrefix:@"/"])
p = [p substringFromIndex:1];
#endif
- return ([result objectForKey:p] != nil) ? YES : NO;
+ return ([(NSDictionary *)result objectForKey:p] != nil) ? YES : NO;
}
/* check using IMAP4 select */