Transition to ARC

This commit is contained in:
Dmitry Serov
2017-07-29 23:14:22 +07:00
parent 6c30359beb
commit 845dfe6017
63 changed files with 335 additions and 767 deletions

View File

@@ -34,7 +34,7 @@
if (fromIndex == toIndex)
return;
id object = [self[fromIndex] retain];
id object = self[fromIndex];
//shift objects - more efficient than simply removing the object and re-inserting the object
if (fromIndex < toIndex)
@@ -49,7 +49,6 @@
}
self[toIndex] = object;
[object release];
}
@end