]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1345 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 28 Jan 2008 18:58:25 +0000 (18:58 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 28 Jan 2008 18:58:25 +0000 (18:58 +0000)
SOPE/NGCards/iCalRecurrenceRule.m

index a18712dc3a329ea728af7ba4fea5132c5e16091a..afeb28d0d5aa5bc5b39d932e8956944ae6a5f435 100644 (file)
 
 - (iCalWeekDay) weekDayFromICalRepresentation: (NSString *) _day
 {
-  NSString *day;
   /* be tolerant */
   iCalWeekDay foundDay;
   unichar chars[2];
+  unsigned int dayLength;
 
   foundDay = 0;
 
-  if ([_day length] > 1)
+  dayLength = [_day length];
+  if (dayLength > 1)
     {
       [[_day uppercaseString] getCharacters: chars
-                             range: NSMakeRange ([day length] - 3, 2)];
+                             range: NSMakeRange (dayLength - 2, 2)];
 
       switch (chars[0])
        {