Tidy some warnings.

This commit is contained in:
Nadine Salter
2015-01-09 13:56:00 -08:00
parent 7b37563cdc
commit e02cae8f2e
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ CGFloat ASDisplayNodeScreenScale()
return screenScale; return screenScale;
} }
void ASDispatchOnceOnMainThread(dispatch_once_t *predicate, dispatch_block_t block) static void ASDispatchOnceOnMainThread(dispatch_once_t *predicate, dispatch_block_t block)
{ {
if ([NSThread isMainThread]) { if ([NSThread isMainThread]) {
dispatch_once(predicate, block); dispatch_once(predicate, block);

View File

@@ -267,7 +267,7 @@
[sections enumerateObjectsUsingBlock:^(NSArray *nodes, NSUInteger idx, BOOL *stop) { [sections enumerateObjectsUsingBlock:^(NSArray *nodes, NSUInteger idx, BOOL *stop) {
NSMutableArray *nodeSizes = [NSMutableArray arrayWithCapacity:nodes.count]; NSMutableArray *nodeSizes = [NSMutableArray arrayWithCapacity:nodes.count];
[nodes enumerateObjectsUsingBlock:^(ASCellNode *node, NSUInteger idx, BOOL *stop) { [nodes enumerateObjectsUsingBlock:^(ASCellNode *node, NSUInteger idx2, BOOL *stop2) {
[nodeSizes addObject:[NSValue valueWithCGSize:node.calculatedSize]]; [nodeSizes addObject:[NSValue valueWithCGSize:node.calculatedSize]];
}]; }];
[sectionNodeSizes addObject:nodeSizes]; [sectionNodeSizes addObject:nodeSizes];