+2005-04-25 Helge Hess <helge.hess@opengroupware.org>
+
+ * iCalDateHolder.m, iCalDataSource.m: fixed gcc 4.0 warnings (v4.5.51)
+
2005-03-23 Marcus Mueller <znek@mulle-kybernetik.com>
* v4.5.50
2005-03-23 Marcus Mueller <znek@mulle-kybernetik.com>
* v4.5.50
MAJOR_VERSION=4
MINOR_VERSION=5
MAJOR_VERSION=4
MINOR_VERSION=5
# v4.5.40 requires NGExtensions v4.5.145
# v4.5.37 requires NGExtensions v4.5.140
# v4.5.40 requires NGExtensions v4.5.145
# v4.5.37 requires NGExtensions v4.5.140
NSArray *calendars;
unsigned i, count;
NSArray *calendars;
unsigned i, count;
- if (![[_cal objectForKey:@"tag"] isEqualToString:@"iCalendar"]) {
+ if (![[(NSDictionary *)_cal objectForKey:@"tag"]
+ isEqualToString:@"iCalendar"]) {
[self logWithFormat:
@"ERROR: calendar (entity=%@) passed in as a dictionary: %@",
_cal];
}
[self logWithFormat:
@"ERROR: calendar (entity=%@) passed in as a dictionary: %@",
_cal];
}
- if ((calendars = [_cal objectForKey:@"subcomponents"]) == nil)
+ if ((calendars=[(NSDictionary *)_cal objectForKey:@"subcomponents"])==nil)
return nil;
count = [calendars count];
return nil;
count = [calendars count];
if ([s rangeOfString:@"T"].length == 0 && [s length] == 8) {
/* hm, maybe a date without a time? like an allday event! */
int year, month, day;
if ([s rangeOfString:@"T"].length == 0 && [s length] == 8) {
/* hm, maybe a date without a time? like an allday event! */
int year, month, day;
[s getCString:&(buf[0])];
buf[9] = '\0';
[s getCString:&(buf[0])];
buf[9] = '\0';
}
else if ([s length] == 15) {
int year, month, day, hour, minute, second;
}
else if ([s length] == 15) {
int year, month, day, hour, minute, second;
[s getCString:&(buf[0])];
second = atoi(&(buf[13])); buf[13] = '\0';
[s getCString:&(buf[0])];
second = atoi(&(buf[13])); buf[13] = '\0';
+- (void)appendAttributesToDescription:(NSMutableString *)ms {
+ if (self->tag) [ms appendFormat:@" %@", self->tag];
+ if (self->string) [ms appendFormat:@" '%@'", self->string];
+ if (self->tzid) [ms appendFormat:@" tz=%@", self->tzid];
+}
+
- (NSString *)description {
NSMutableString *ms;
ms = [NSMutableString stringWithCapacity:128];
[ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
- (NSString *)description {
NSMutableString *ms;
ms = [NSMutableString stringWithCapacity:128];
[ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
-
- if (self->tag) [ms appendFormat:@" %@", self->tag];
- if (self->string) [ms appendFormat:@" '%@'", self->string];
- if (self->tzid) [ms appendFormat:@" tz=%@", self->tzid];
-
+ [self appendAttributesToDescription:ms];
[ms appendString:@">"];
return ms;
}
[ms appendString:@">"];
return ms;
}