Skip to content

Commit

Permalink
Fix build warning "Sending 'const NSString *' to parameter of type 'N…
Browse files Browse the repository at this point in the history
…SErrorUserInfoKey _Nonnull' (aka 'NSString *') discards qualifiers".

The pointer should be a const, not the opaque struct.
  • Loading branch information
lapcat committed Oct 28, 2017
1 parent f343128 commit d3ed84b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion STTwitter/STTwitterOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extern NS_ENUM(NSUInteger, STTwitterOSErrorCode) {

@class ACAccount;

extern const NSString *STTwitterOSInvalidatedAccount;
extern NSString * const STTwitterOSInvalidatedAccount;

@interface STTwitterOS : NSObject <STTwitterProtocol>

Expand Down
2 changes: 1 addition & 1 deletion STTwitter/STTwitterOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#import <Twitter/Twitter.h> // iOS 5
#endif

const NSString *STTwitterOSInvalidatedAccount = @"STTwitterOSInvalidatedAccount";
NSString * const STTwitterOSInvalidatedAccount = @"STTwitterOSInvalidatedAccount";

@interface ACAccount (STTwitterOS)
- (NSString *)st_userID; // private API
Expand Down

0 comments on commit d3ed84b

Please sign in to comment.