From 70461aafc6b7961dbfe8ef13a18bbfdd578399cd Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 10 Jul 2008 21:31:15 +0000 Subject: [PATCH] Monotone-Parent: c3df23705e1b55a2e006d04494c59dff7bedbbf3 Monotone-Revision: f10b2ee8514da6a0df6edddeb7564568b2064459 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-10T21:31:15 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/NSString+Utilities.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/SoObjects/SOGo/NSString+Utilities.m b/SoObjects/SOGo/NSString+Utilities.m index 857fe71c8..06cfe3975 100644 --- a/SoObjects/SOGo/NSString+Utilities.m +++ b/SoObjects/SOGo/NSString+Utilities.m @@ -101,12 +101,8 @@ static NSMutableCharacterSet *urlStartChars = nil; newName = [NSMutableString stringWithString: @"dav"]; components = [[self componentsSeparatedByString: @"-"] objectEnumerator]; - component = [components nextObject]; - while (component) - { - [newName appendString: [component capitalizedString]]; - component = [components nextObject]; - } + while ((component = [components nextObject])) + [newName appendString: [component capitalizedString]]; return newName; }