mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)
* Add some warn_unused_result attributes * Add more * Add some more
This commit is contained in:
@@ -68,7 +68,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
|
||||
*
|
||||
* @return The title for the specified state.
|
||||
*/
|
||||
- (NSAttributedString * _Nullable)attributedTitleForState:(ASControlState)state;
|
||||
- (NSAttributedString * _Nullable)attributedTitleForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* Sets the styled title to use for the specified state. This will reset styled title previously set with -setTitle:withFont:withColor:forState.
|
||||
@@ -96,7 +96,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
|
||||
*
|
||||
* @return The image used for the specified state.
|
||||
*/
|
||||
- (nullable UIImage *)imageForState:(ASControlState)state;
|
||||
- (nullable UIImage *)imageForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* Sets the image to use for the specified state.
|
||||
@@ -122,7 +122,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
|
||||
*
|
||||
* @return The background image used for the specified state.
|
||||
*/
|
||||
- (nullable UIImage *)backgroundImageForState:(ASControlState)state;
|
||||
- (nullable UIImage *)backgroundImageForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user