Fix build warnings about nullability.

pull/1/head
Matthew Chen 7 years ago
parent 772e73a8da
commit becd72329b

@ -1,7 +1,9 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
NS_ASSUME_NONNULL_BEGIN
@class SMKUDAccessKey; @class SMKUDAccessKey;
@interface TSRequest : NSMutableURLRequest @interface TSRequest : NSMutableURLRequest
@ -30,3 +32,5 @@
parameters:(nullable NSDictionary<NSString *, id> *)parameters; parameters:(nullable NSDictionary<NSString *, id> *)parameters;
@end @end
NS_ASSUME_NONNULL_END

@ -1,5 +1,5 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
#import "TSRequest.h" #import "TSRequest.h"
@ -8,6 +8,8 @@
#import <SignalCoreKit/NSData+OWS.h> #import <SignalCoreKit/NSData+OWS.h>
#import <SignalMetadataKit/SignalMetadataKit-Swift.h> #import <SignalMetadataKit/SignalMetadataKit-Swift.h>
NS_ASSUME_NONNULL_BEGIN
@implementation TSRequest @implementation TSRequest
@synthesize authUsername = _authUsername; @synthesize authUsername = _authUsername;
@ -94,7 +96,7 @@
} }
} }
- (NSString *)authUsername - (nullable NSString *)authUsername
{ {
OWSAssertDebug(self.shouldHaveAuthorizationHeaders); OWSAssertDebug(self.shouldHaveAuthorizationHeaders);
@ -103,7 +105,7 @@
} }
} }
- (NSString *)authPassword - (nullable NSString *)authPassword
{ {
OWSAssertDebug(self.shouldHaveAuthorizationHeaders); OWSAssertDebug(self.shouldHaveAuthorizationHeaders);
@ -113,3 +115,5 @@
} }
@end @end
NS_ASSUME_NONNULL_END

@ -1,7 +1,9 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
NS_ASSUME_NONNULL_BEGIN
@interface NSData (Image) @interface NSData (Image)
// If mimeType is non-nil, we ensure that the magic numbers agree with the // If mimeType is non-nil, we ensure that the magic numbers agree with the
@ -19,3 +21,5 @@
+ (BOOL)hasAlphaForValidImageFilePath:(NSString *)filePath; + (BOOL)hasAlphaForValidImageFilePath:(NSString *)filePath;
@end @end
NS_ASSUME_NONNULL_END

@ -1,5 +1,5 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
#import "NSData+Image.h" #import "NSData+Image.h"
@ -8,6 +8,8 @@
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#import <SignalServiceKit/SignalServiceKit-Swift.h> #import <SignalServiceKit/SignalServiceKit-Swift.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ImageFormat) { typedef NS_ENUM(NSInteger, ImageFormat) {
ImageFormat_Unknown, ImageFormat_Unknown,
ImageFormat_Png, ImageFormat_Png,
@ -403,3 +405,5 @@ typedef NS_ENUM(NSInteger, ImageFormat) {
} }
@end @end
NS_ASSUME_NONNULL_END

Loading…
Cancel
Save