mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Tidy some warnings.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user