From 4a3f7e384f1da09455ad0e27cb49a189376f0f39 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 14 Oct 2009 12:01:29 +0000 Subject: [PATCH] Monotone-Parent: 88abde23827bf8224db16cc732418d143787b3f6 Monotone-Revision: bcf0244d358523a4f4d16339d9ea38d4ce1114e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-10-14T12:01:29 Monotone-Branch: ca.inverse.sogo --- UI/MainUI/SOGoUserHomePage.m | 3 +-- UI/SOGoUI/SOGoAptFormatter.m | 3 +-- UI/Scheduler/UIxTimeDateControl.m | 8 ++------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index 02de6ad66..3d2b8f12a 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -323,7 +323,7 @@ static NSString *LDAPContactInfoAttribute = nil; [response setHeader: @"text/plain; charset=utf-8" forKey: @"Content-Type"]; - responseString = [NSMutableString new]; + responseString = [NSMutableString string]; // We sort our array - this is pretty useful for the Web // interface of SOGo. @@ -353,7 +353,6 @@ static NSString *LDAPContactInfoAttribute = nil; } } [response appendContentString: responseString]; - [responseString release]; return response; } diff --git a/UI/SOGoUI/SOGoAptFormatter.m b/UI/SOGoUI/SOGoAptFormatter.m index 3c5c4b54b..dbd49401d 100644 --- a/UI/SOGoUI/SOGoAptFormatter.m +++ b/UI/SOGoUI/SOGoAptFormatter.m @@ -240,8 +240,7 @@ NSCalendarDate *startDate; NSTimeZone *dtz; - title = [NSMutableString new]; - [title autorelease]; + title = [NSMutableString string]; dtz = [self displayTZ]; startDate = [_apt valueForKey: @"startDate"]; diff --git a/UI/Scheduler/UIxTimeDateControl.m b/UI/Scheduler/UIxTimeDateControl.m index c36b85385..cc768cb2b 100644 --- a/UI/Scheduler/UIxTimeDateControl.m +++ b/UI/Scheduler/UIxTimeDateControl.m @@ -176,9 +176,7 @@ NSMutableArray *hours; unsigned int h; - hours = [NSMutableArray new]; - [hours autorelease]; - + hours = [NSMutableArray array]; for (h = startHour; h < (endHour + 1); h++) [hours addObject: [NSNumber numberWithInt: h]]; @@ -210,9 +208,7 @@ NSMutableArray *minutes; unsigned int m; - minutes = [NSMutableArray new]; - [minutes autorelease]; - + minutes = [NSMutableArray array]; for (m = 0; m < 60; m += 15) [minutes addObject: [NSNumber numberWithInt: m]];