Patch applied from bug #1664

Monotone-Parent: 1e79eab4c546452715e5171f1c326b7d36f1c195
Monotone-Revision: 99dc7d9dce88b8a323b1e7aab60de99ed2bfda60

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-05-29T18:56:15
maint-2.0.2
Ludovic Marcotte 2012-05-29 18:56:15 +00:00
parent 2e49702e3f
commit d6f0203351
8 changed files with 36 additions and 34 deletions

View File

@ -354,7 +354,7 @@ static NGCardsSaxHandler *sax = nil;
- (void) setChildrenAsCopy: (NSMutableArray *) someChildren - (void) setChildrenAsCopy: (NSMutableArray *) someChildren
{ {
unsigned int count, max; NSUInteger count, max;
ASSIGN (children, someChildren); ASSIGN (children, someChildren);
@ -399,7 +399,7 @@ static NGCardsSaxHandler *sax = nil;
- (NSString *) description - (NSString *) description
{ {
NSMutableString *str; NSMutableString *str;
unsigned int count, max; NSUInteger count, max;
str = [NSMutableString stringWithCapacity:64]; str = [NSMutableString stringWithCapacity:64];
[str appendFormat:@"<%p[%@]:%@", [str appendFormat:@"<%p[%@]:%@",
@ -421,7 +421,7 @@ static NGCardsSaxHandler *sax = nil;
- (void) replaceThisElement: (CardElement *) oldElement - (void) replaceThisElement: (CardElement *) oldElement
withThisOne: (CardElement *) newElement withThisOne: (CardElement *) newElement
{ {
unsigned int index; NSUInteger index;
index = [children indexOfObject: oldElement]; index = [children indexOfObject: oldElement];
if (index != NSNotFound) if (index != NSNotFound)

View File

@ -53,7 +53,7 @@
nil nil
}; };
BOOL hasPrefix; BOOL hasPrefix;
unsigned int i; NSUInteger i;
NSString *subject, *newSubject; NSString *subject, *newSubject;
hasPrefix = NO; hasPrefix = NO;
@ -101,7 +101,7 @@
NSDictionary *parts; NSDictionary *parts;
NSString *rawPart, *content, *contentKey; NSString *rawPart, *content, *contentKey;
SOGoUserDefaults *ud; SOGoUserDefaults *ud;
int index; NSUInteger index;
BOOL htmlComposition, htmlContent; BOOL htmlComposition, htmlContent;
content = @""; content = @"";
@ -191,7 +191,7 @@
static NSString *sescape[] = { static NSString *sescape[] = {
@"/", @"..", @"~", @"\"", @"'", @" ", @".", nil @"/", @"..", @"~", @"\"", @"'", @" ", @".", nil
}; };
unsigned int count, length; NSUInteger count, length;
subject = [self decodedSubject]; subject = [self decodedSubject];
length = [subject length]; length = [subject length];
@ -300,7 +300,7 @@
NSString *newPath; NSString *newPath;
NSArray *subparts; NSArray *subparts;
NSString *type; NSString *type;
unsigned int i; NSUInteger i;
type = [[part objectForKey: @"type"] lowercaseString]; type = [[part objectForKey: @"type"] lowercaseString];
if ([type isEqualToString: @"multipart"]) if ([type isEqualToString: @"multipart"])

View File

@ -471,7 +471,8 @@ static int cssEscapingCount;
- (int) timeValue - (int) timeValue
{ {
int i, time; int time;
NSInteger i;
if ([self length] > 0) if ([self length] > 0)
{ {

View File

@ -43,7 +43,7 @@
@interface UIxMailPartAlternativeViewer : UIxMailPartViewer @interface UIxMailPartAlternativeViewer : UIxMailPartViewer
{ {
id childInfo; id childInfo;
unsigned int childIndex; NSUInteger childIndex;
} }
@end @end
@ -70,7 +70,7 @@
- (NSArray *) childPartTypes - (NSArray *) childPartTypes
{ {
NSMutableArray *types; NSMutableArray *types;
unsigned i, count; NSUInteger i, count;
NSArray *childParts; NSArray *childParts;
childParts = [[self bodyInfo] valueForKey:@"parts"]; childParts = [[self bodyInfo] valueForKey:@"parts"];
@ -89,10 +89,10 @@
return types; return types;
} }
- (unsigned int) _preferredTypesPart: (NSArray *) types - (NSUInteger) _preferredTypesPart: (NSArray *) types
{ {
unsigned int count, max; NSUInteger count, max;
unsigned int part; NSUInteger part;
const NSString *priorities[] = { @"multipart/related", @"multipart/mixed", const NSString *priorities[] = { @"multipart/related", @"multipart/mixed",
@"text/calendar", @"text/html", @"text/calendar", @"text/html",
@"text/plain" }; @"text/plain" };
@ -113,7 +113,7 @@
- (int) _selectPartIndexFromTypes: (NSArray *) _types - (int) _selectPartIndexFromTypes: (NSArray *) _types
{ {
/* returns the index of the selected part or NSNotFound */ /* returns the index of the selected part or NSNotFound */
unsigned count, max, part; NSUInteger count, max, part;
part = [self _preferredTypesPart: _types]; part = [self _preferredTypesPart: _types];
if (part == NSNotFound) if (part == NSNotFound)
@ -136,7 +136,7 @@
- (void) selectChildInfo - (void) selectChildInfo
{ {
unsigned idx; NSUInteger idx;
[childInfo release]; childInfo = nil; [childInfo release]; childInfo = nil;
childIndex = 0; childIndex = 0;
@ -164,7 +164,7 @@
return childInfo; return childInfo;
} }
- (unsigned int) childIndex - (NSUInteger) childIndex
{ {
if (!childIndex) if (!childIndex)
[self selectChildInfo]; [self selectChildInfo];
@ -176,7 +176,7 @@
{ {
char buf[8]; char buf[8];
sprintf (buf, "%d", [self childIndex] + 1); sprintf (buf, "%"PRIuPTR"", [self childIndex] + 1);
return [NSString stringWithCString:buf]; return [NSString stringWithCString:buf];
} }

View File

@ -394,7 +394,7 @@ static NSArray *infoKeys = nil;
{ {
if (![_info isNotNull]) return; if (![_info isNotNull]) return;
[self debugWithFormat:@"loading info ..."]; [self debugWithFormat:@"loading info ..."];
[self takeValuesFromDictionary:_info]; [self setValuesForKeysWithDictionary:_info];
} }
- (NSDictionary *) storeInfo - (NSDictionary *) storeInfo

View File

@ -125,8 +125,8 @@
// TODO: this is ugly, create reusable link facility in SOPE // TODO: this is ugly, create reusable link facility in SOPE
// TODO: remove 'search' and 'filterpopup', preserve sorting // TODO: remove 'search' and 'filterpopup', preserve sorting
NSMutableString *ms; NSMutableString *ms;
NSArray *qp; NSArray *qp;
unsigned i, count; NSUInteger i, count;
qp = [[u substringFromIndex:(r.location + r.length)] qp = [[u substringFromIndex:(r.location + r.length)]
componentsSeparatedByString:@"&"]; componentsSeparatedByString:@"&"];
@ -193,8 +193,8 @@
SOGoMailAccounts *co; SOGoMailAccounts *co;
SOGoContactFolders *folders; SOGoContactFolders *folders;
SOGoParentFolder *folder; SOGoParentFolder *folder;
WORequest *request; WORequest *request;
int i, count; NSUInteger i, count;
parameters = nil; parameters = nil;
co = [self clientObject]; co = [self clientObject];
@ -549,7 +549,7 @@
NSArray *available; NSArray *available;
NSDictionary *metaData; NSDictionary *metaData;
SOGoUserDefaults *ud; SOGoUserDefaults *ud;
unsigned int i; NSUInteger i;
if (!columnsOrder) if (!columnsOrder)
{ {
@ -636,8 +636,8 @@
NSMutableArray *folders; NSMutableArray *folders;
NSMutableString *path; NSMutableString *path;
SOGoUserDefaults *ud; SOGoUserDefaults *ud;
NSString *s; NSString *s;
int i, j, k; NSUInteger i, j, k;
ud = [[context activeUser] userDefaults]; ud = [[context activeUser] userDefaults];
folders = [NSMutableArray array]; folders = [NSMutableArray array];

View File

@ -118,7 +118,7 @@
- (NSArray *) filterAppointments:(NSArray *) _apts - (NSArray *) filterAppointments:(NSArray *) _apts
{ {
NSMutableArray *filtered; NSMutableArray *filtered;
unsigned i, count, p, pCount; NSUInteger i, count, p, pCount;
NSString *email, *partmailsString, *state, *pEmail; NSString *email, *partmailsString, *state, *pEmail;
NSDictionary *info, *primaryIdentity; NSDictionary *info, *primaryIdentity;
NSArray *partmails, *partstates; NSArray *partmails, *partstates;
@ -370,7 +370,7 @@
{ {
NSArray *apts; NSArray *apts;
NSMutableArray *filtered; NSMutableArray *filtered;
unsigned i, count; NSUInteger i, count;
if (allDayApts) if (allDayApts)
return allDayApts; return allDayApts;
@ -532,7 +532,8 @@
NSString *uidsString, *loc, *prevMethod, *userFolderID; NSString *uidsString, *loc, *prevMethod, *userFolderID;
id <WOActionResults> r; id <WOActionResults> r;
BOOL useGroups; BOOL useGroups;
unsigned index; NSUInteger index;
uidsString = [self queryParameterForKey: @"userUIDString"]; uidsString = [self queryParameterForKey: @"userUIDString"];
uidsString = [uidsString stringByTrimmingSpaces]; uidsString = [uidsString stringByTrimmingSpaces];

View File

@ -525,7 +525,7 @@ iRANGE(2);
iCalTrigger *aTrigger; iCalTrigger *aTrigger;
NSString *duration, *quantity; NSString *duration, *quantity;
unichar c; unichar c;
unsigned int i; NSUInteger i;
if ([component hasAlarms]) if ([component hasAlarms])
{ {
@ -1289,7 +1289,7 @@ iRANGE(2);
NSString *currentOwner; NSString *currentOwner;
SOGoAppointmentFolder *currentCalendar; SOGoAppointmentFolder *currentCalendar;
SOGoUser *currentUser; SOGoUser *currentUser;
unsigned i; NSUInteger i;
calendars = [self calendarList]; calendars = [self calendarList];
owners = [NSMutableArray arrayWithCapacity: [calendars count]]; owners = [NSMutableArray arrayWithCapacity: [calendars count]];
@ -1562,7 +1562,7 @@ RANGE(2);
{ {
NSString *cycleRep; NSString *cycleRep;
NSArray *cycles; NSArray *cycles;
unsigned i, count; NSUInteger i, count;
if (!_rrule) if (!_rrule)
return [[self cycles] objectAtIndex:0]; return [[self cycles] objectAtIndex:0];
@ -1721,7 +1721,7 @@ RANGE(2);
// s = [self queryParameterForKey:_qp]; // s = [self queryParameterForKey:_qp];
// if(s && [s length] > 0) { // if(s && [s length] > 0) {
// NSArray *es; // NSArray *es;
// unsigned i, count; // NSUInteger i, count;
// es = [s componentsSeparatedByString: @","]; // es = [s componentsSeparatedByString: @","];
// count = [es count]; // count = [es count];
@ -1766,7 +1766,7 @@ RANGE(2);
- (void) _handleAttendeesEdition - (void) _handleAttendeesEdition
{ {
NSMutableArray *newAttendees; NSMutableArray *newAttendees;
unsigned int count, max; NSUInteger count, max;
NSString *currentEmail; NSString *currentEmail;
iCalPerson *currentAttendee; iCalPerson *currentAttendee;
NSString *json, *role, *partstat; NSString *json, *role, *partstat;
@ -2189,7 +2189,7 @@ RANGE(2);
iCalTrigger *aTrigger; iCalTrigger *aTrigger;
iCalAlarm *anAlarm; iCalAlarm *anAlarm;
NSString *aValue; NSString *aValue;
unsigned int index; NSUInteger index;
anAlarm = [iCalAlarm new]; anAlarm = [iCalAlarm new];