More changes now when we don't have with(self)

This commit is contained in:
Martin Carlberg committed 2012-12-16 19:20:59 +01:00
1 parent c297e926f9
commit 0280a10832
2 files changed
+28 -28

No files matched your search

+2 -2
View File
@@ -217,7 +217,7 @@
*/
- (void)removeObject:(id)anObject
{
[self removeObject:anObject inRange:CPMakeRange(0, length)];
[self removeObject:anObject inRange:CPMakeRange(0, self.length)];
}
/*!
@@ -232,7 +232,7 @@
while ((index = [self indexOfObject:anObject inRange:aRange]) != CPNotFound)
{
[self removeObjectAtIndex:index];
aRange = CPIntersectionRange(CPMakeRange(index, length - index), aRange);
aRange = CPIntersectionRange(CPMakeRange(index, self.length - index), aRange);
}
}