From b1b1319a46f3f5d98d47a3b83b7fdfa27f7b01fc Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 1 Jun 2007 20:47:14 +0000 Subject: [PATCH] Monotone-Parent: ebf9e259f35f824bac1d65aaaeb22d27c2e81357 Monotone-Revision: a3af3c8ec093a513104f71c796d21d4ad5b438a5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-01T20:47:14 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/Contacts/SOGoContactGCSEntry.m | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d6407a6dc..8d415e848 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-06-01 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry + -vCard]): directly use the "content" ivar since it is initialized + during object creation. + * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -init]): no longer handle the nameInContainer no the container ivars. They were removed because diff --git a/SoObjects/Contacts/SOGoContactGCSEntry.m b/SoObjects/Contacts/SOGoContactGCSEntry.m index 39aca0a4b..b56e5a928 100644 --- a/SoObjects/Contacts/SOGoContactGCSEntry.m +++ b/SoObjects/Contacts/SOGoContactGCSEntry.m @@ -40,8 +40,7 @@ - (void) dealloc { - if (card) - [card release]; + [card release]; [super dealloc]; } @@ -49,13 +48,10 @@ - (NGVCard *) vCard { - NSString *contentStr; - if (!card) { - contentStr = [self contentAsString]; - if ([[contentStr uppercaseString] hasPrefix:@"BEGIN:VCARD"]) - card = [NGVCard parseSingleFromSource: contentStr]; + if ([[content uppercaseString] hasPrefix: @"BEGIN:VCARD"]) + card = [NGVCard parseSingleFromSource: content]; else card = [NGVCard cardWithUid: [self nameInContainer]]; [card retain];