mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix "This block and function declaration is not a prototype" warning. (#619)
This commit is contained in:
committed by
Huy Nguyen
parent
72d33fc88e
commit
1e7d46196f
@@ -36,17 +36,17 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* UIView creation block. Used to create the backing view of a new display node.
|
||||
*/
|
||||
typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)();
|
||||
typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)(void);
|
||||
|
||||
/**
|
||||
* UIView creation block. Used to create the backing view of a new display node.
|
||||
*/
|
||||
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)();
|
||||
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)(void);
|
||||
|
||||
/**
|
||||
* CALayer creation block. Used to create the backing layer of a new display node.
|
||||
*/
|
||||
typedef CALayer * _Nonnull(^ASDisplayNodeLayerBlock)();
|
||||
typedef CALayer * _Nonnull(^ASDisplayNodeLayerBlock)(void);
|
||||
|
||||
/**
|
||||
* ASDisplayNode loaded callback block. This block is called BEFORE the -didLoad method and is always called on the main thread.
|
||||
@@ -880,7 +880,7 @@ extern NSInteger const ASDefaultDrawingPriority;
|
||||
- (void)transitionLayoutWithSizeRange:(ASSizeRange)constrainedSize
|
||||
animated:(BOOL)animated
|
||||
shouldMeasureAsync:(BOOL)shouldMeasureAsync
|
||||
measurementCompletion:(nullable void(^)())completion;
|
||||
measurementCompletion:(nullable void(^)(void))completion;
|
||||
|
||||
|
||||
/**
|
||||
@@ -897,7 +897,7 @@ extern NSInteger const ASDefaultDrawingPriority;
|
||||
*/
|
||||
- (void)transitionLayoutWithAnimation:(BOOL)animated
|
||||
shouldMeasureAsync:(BOOL)shouldMeasureAsync
|
||||
measurementCompletion:(nullable void(^)())completion;
|
||||
measurementCompletion:(nullable void(^)(void))completion;
|
||||
|
||||
/**
|
||||
* @abstract Cancels all performing layout transitions. Can be called on any thread.
|
||||
|
||||
Reference in New Issue
Block a user