]> err.no Git - sope/blobdiff - sope-ical/NGiCal/iCalDataSource.m
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1195 e4a50df8-12e2-0310-a44c...
[sope] / sope-ical / NGiCal / iCalDataSource.m
index 37fd0b35404c84cff819562ae5d293bb9021f191..b84c39402b83ad77ca1e68493311a9c3271a6915 100644 (file)
@@ -91,8 +91,8 @@ static SaxObjectDecoder *sax = nil;
 
 - (void)dealloc {
   [self->fetchSpecification release];
-  [self->entityName release];
-  [self->url release];
+  [self->url                release];
+  [self->entityName         release];
   [super dealloc];
 }
 
@@ -163,13 +163,14 @@ static SaxObjectDecoder *sax = nil;
     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];
     }
     
-    if ((calendars = [_cal objectForKey:@"subcomponents"]) == nil)
+    if ((calendars=[(NSDictionary *)_cal objectForKey:@"subcomponents"])==nil)
       return nil;
 
     count = [calendars count];