diff options
author | Robert Widmann <devteam.codafi@gmail.com> | 2016-02-02 17:25:37 -0500 |
---|---|---|
committer | Robert Widmann <devteam.codafi@gmail.com> | 2016-02-02 17:25:37 -0500 |
commit | 62c0feb0bbba084b892d55c83314731fb2663a37 (patch) | |
tree | 1afa302ac4e3cdaf30534a643ed1ef2a08b97a91 /src/objc/rfc822 | |
parent | ad12f19b3959e8930b7183a6acb26f6571c48686 (diff) |
id -> instancetype
Diffstat (limited to 'src/objc/rfc822')
-rw-r--r-- | src/objc/rfc822/MCOAttachment.mm | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessageBuilder.mm | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessageParser.h | 2 | ||||
-rw-r--r-- | src/objc/rfc822/MCOMessageParser.mm | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/objc/rfc822/MCOAttachment.mm b/src/objc/rfc822/MCOAttachment.mm index d7cbadc4..f19f608c 100644 --- a/src/objc/rfc822/MCOAttachment.mm +++ b/src/objc/rfc822/MCOAttachment.mm @@ -31,7 +31,7 @@ return [[[self alloc] initWithMCPart:attachment] autorelease]; } -- (id) init +- (instancetype) init { mailcore::Attachment * attachment = new mailcore::Attachment(); self = [super initWithMCPart:attachment]; diff --git a/src/objc/rfc822/MCOMessageBuilder.mm b/src/objc/rfc822/MCOMessageBuilder.mm index 84cff18d..84cc37f2 100644 --- a/src/objc/rfc822/MCOMessageBuilder.mm +++ b/src/objc/rfc822/MCOMessageBuilder.mm @@ -22,7 +22,7 @@ MCORegisterClass(self, &typeid(nativeType)); } -- (id)init +- (instancetype) init { mailcore::MessageBuilder * message = new mailcore::MessageBuilder(); self = [super initWithMCMessage:message]; diff --git a/src/objc/rfc822/MCOMessageParser.h b/src/objc/rfc822/MCOMessageParser.h index 6bbed0be..c0e3f37c 100644 --- a/src/objc/rfc822/MCOMessageParser.h +++ b/src/objc/rfc822/MCOMessageParser.h @@ -26,7 +26,7 @@ + (MCOMessageParser *) messageParserWithData:(NSData *)data; /** data is the RFC 822 formatted message.*/ -- (id) initWithData:(NSData *)data; +- (instancetype) initWithData:(NSData *)data; - (void) dealloc; /** It's the main part of the message. It can be MCOMessagePart, MCOMultipart or MCOAttachment.*/ diff --git a/src/objc/rfc822/MCOMessageParser.mm b/src/objc/rfc822/MCOMessageParser.mm index 228a27b9..55463a18 100644 --- a/src/objc/rfc822/MCOMessageParser.mm +++ b/src/objc/rfc822/MCOMessageParser.mm @@ -36,7 +36,7 @@ return [[[MCOMessageParser alloc] initWithData:data] autorelease]; } -- (id) initWithData:(NSData *)data +- (instancetype) initWithData:(NSData *)data { mailcore::MessageParser * message = new mailcore::MessageParser((CFDataRef) data); self = [super initWithMCMessage:message]; |