mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
style
Monotone-Parent: d68ff2564716354de100688f82825ac0b5a5f2e9 Monotone-Revision: ab1a3804c938ec7df1f4f5209f7299df3e3042d1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-07-16T14:19:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -67,17 +67,14 @@
|
||||
|
||||
cmpTag = [aTag uppercaseString];
|
||||
|
||||
matchingElements = [NSMutableArray new];
|
||||
[matchingElements autorelease];
|
||||
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||
|
||||
allElements = [self objectEnumerator];
|
||||
currentElement = [allElements nextObject];
|
||||
while (currentElement)
|
||||
while ((currentElement = [allElements nextObject]))
|
||||
{
|
||||
currentTag = [[currentElement tag] uppercaseString];
|
||||
if ([currentTag isEqualToString: cmpTag])
|
||||
[matchingElements addObject: currentElement];
|
||||
currentElement = [allElements nextObject];
|
||||
}
|
||||
|
||||
return matchingElements;
|
||||
@@ -92,16 +89,12 @@
|
||||
|
||||
allElements = [self objectEnumerator];
|
||||
|
||||
matchingElements = [NSMutableArray new];
|
||||
[matchingElements autorelease];
|
||||
currentElement = [allElements nextObject];
|
||||
while (currentElement)
|
||||
{
|
||||
if ([currentElement hasAttribute: anAttribute
|
||||
havingValue: aValue])
|
||||
[matchingElements addObject: currentElement];
|
||||
currentElement = [allElements nextObject];
|
||||
}
|
||||
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||
|
||||
while ((currentElement = [allElements nextObject]))
|
||||
if ([currentElement hasAttribute: anAttribute
|
||||
havingValue: aValue])
|
||||
[matchingElements addObject: currentElement];
|
||||
|
||||
return matchingElements;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user