mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 21:49:41 +00:00
Add nullability annotations to newer APIs that lacked it from the original PR.
This commit is contained in:
parent
882d4b336e
commit
c6fa897dc2
Binary file not shown.
@ -27,7 +27,7 @@ typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)();
|
|||||||
/**
|
/**
|
||||||
* UIView creation block. Used to create the backing view of a new display node.
|
* UIView creation block. Used to create the backing view of a new display node.
|
||||||
*/
|
*/
|
||||||
typedef UIViewController *(^ASDisplayNodeViewControllerBlock)();
|
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CALayer creation block. Used to create the backing layer of a new display node.
|
* CALayer creation block. Used to create the backing layer of a new display node.
|
||||||
|
@ -361,9 +361,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
@protocol ASTableViewDelegate <ASTableDelegate>
|
||||||
NS_ASSUME_NONNULL_END
|
|
||||||
=======
|
|
||||||
@protocol ASTableViewDelegate <ASTableDelegate>;
|
|
||||||
@end
|
@end
|
||||||
>>>>>>> master
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
||||||
|
@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||||
{
|
{
|
||||||
return [self initWithNode:nil];
|
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
|
||||||
|
return [self initWithNode:[[ASDisplayNode alloc] init]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
||||||
{
|
{
|
||||||
return [self initWithNode:nil];
|
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
|
||||||
|
return [self initWithNode:[[ASDisplayNode alloc] init]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithNode:(ASDisplayNode *)node
|
- (instancetype)initWithNode:(ASDisplayNode *)node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user