diff --git a/ChangeLog b/ChangeLog index be5aef52f..af84d8f1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-10-25 Ludovic Marcotte + + * Fixed many compilation warnings + 2009-10-24 Ludovic Marcotte * Updated the Czech translation - patch from diff --git a/SOPE/NGCards/iCalTimeZone.m b/SOPE/NGCards/iCalTimeZone.m index 8fbfb15cf..be82b997c 100644 --- a/SOPE/NGCards/iCalTimeZone.m +++ b/SOPE/NGCards/iCalTimeZone.m @@ -3,6 +3,7 @@ * Copyright (C) 2006-2009 Inverse inc. * * Author: Wolfgang Sourdeau + * Ludovic Marcotte * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/SoObjects/SOGo/SOGoUserDefaults.m b/SoObjects/SOGo/SOGoUserDefaults.m index a5b3b9ad4..1bab5ffb3 100644 --- a/SoObjects/SOGo/SOGoUserDefaults.m +++ b/SoObjects/SOGo/SOGoUserDefaults.m @@ -36,6 +36,7 @@ #import "NSObject+Utilities.h" +#import "NSDictionary+BSJSONAdditions.h" #import "SOGoUserDefaults.h" #import "SOGoCache.h" diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 2346764ce..a378d6807 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -40,6 +40,8 @@ #import #import #import +#import +#import #import #import @@ -527,8 +529,8 @@ tz = [iCalTimeZone timeZoneForName: [[[context activeUser] timeZone] name]]; [[event parent] addTimeZone: tz]; - [[event uniqueChildWithTag: @"dtstart"] setTimeZone: tz]; - [[event uniqueChildWithTag: @"dtend"] setTimeZone: tz]; + [(iCalDateTime *)[event uniqueChildWithTag: @"dtstart"] setTimeZone: tz]; + [(iCalDateTime *)[event uniqueChildWithTag: @"dtend"] setTimeZone: tz]; } [event setTransparency: (isTransparent? @"TRANSPARENT" : @"OPAQUE")]; diff --git a/UI/Scheduler/UIxCalFilterPanel.m b/UI/Scheduler/UIxCalFilterPanel.m index 9ca38107d..9b7939450 100644 --- a/UI/Scheduler/UIxCalFilterPanel.m +++ b/UI/Scheduler/UIxCalFilterPanel.m @@ -1,6 +1,6 @@ /* UIxContactsFilterPanel.m - this file is part of SOGo * - * Copyright (C) 2006 Inverse inc. + * Copyright (C) 2006-2009 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -28,6 +28,8 @@ #import +#import + #import "UIxCalFilterPanel.h" static NSArray *filters = nil; diff --git a/UI/Scheduler/UIxTaskEditor.m b/UI/Scheduler/UIxTaskEditor.m index 2062c9e8b..2065d3ad2 100644 --- a/UI/Scheduler/UIxTaskEditor.m +++ b/UI/Scheduler/UIxTaskEditor.m @@ -35,6 +35,8 @@ #import #import #import +#import +#import #import #import @@ -458,10 +460,10 @@ data = [NSDictionary dictionaryWithObjectsAndKeys: [todo tag], @"component", - (startDate? [dateFormatter formattedDate: startDate] : @""), @"startDate", - (startDate? [dateFormatter formattedTime: startDate] : @""), @"startTime", - (dueDate? [dateFormatter formattedDate: dueDate] : @""), @"dueDate", - (dueDate? [dateFormatter formattedTime: dueDate] : @""), @"dueTime", + (startDate? (id)[dateFormatter formattedDate: startDate] : (id)@""), @"startDate", + (startDate? (id)[dateFormatter formattedTime: startDate] : (id)@""), @"startTime", + (dueDate? (id)[dateFormatter formattedDate: dueDate] : (id)@""), @"dueDate", + (dueDate? (id)[dateFormatter formattedTime: dueDate] : (id)@""), @"dueTime", ([todo hasRecurrenceRules]? @"1": @"0"), @"isReccurent", [todo summary], @"summary", [todo location], @"location", @@ -531,10 +533,10 @@ } if (hasStartDate) - [[todo uniqueChildWithTag: @"dtstart"] setTimeZone: tz]; + [(iCalDateTime *)[todo uniqueChildWithTag: @"dtstart"] setTimeZone: tz]; if (hasDueDate) - [[todo uniqueChildWithTag: @"due"] setTimeZone: tz]; + [(iCalDateTime *)[todo uniqueChildWithTag: @"due"] setTimeZone: tz]; } }