aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/rfc822
diff options
context:
space:
mode:
authorGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2015-09-08 16:42:51 -0700
committerGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2015-09-08 16:42:51 -0700
commit18b80e588a52607f2eaa76683de5904c7d56119c (patch)
tree5415bca21ef557fd8bb36499a3e3cbe29cfe5f8c /src/objc/rfc822
parent859457d3a03a4a81eedb4f39caf3b667dee7a71c (diff)
Revert "Fixed warnings"
Diffstat (limited to 'src/objc/rfc822')
-rw-r--r--src/objc/rfc822/MCOAttachment.mm2
-rw-r--r--src/objc/rfc822/MCOMessageBuilder.mm3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/objc/rfc822/MCOAttachment.mm b/src/objc/rfc822/MCOAttachment.mm
index 77a642d6..afaf96af 100644
--- a/src/objc/rfc822/MCOAttachment.mm
+++ b/src/objc/rfc822/MCOAttachment.mm
@@ -35,7 +35,7 @@
- (id) init
{
mailcore::Attachment * attachment = new mailcore::Attachment();
- self = [super initWithMCPart:attachment];
+ self = [self initWithMCPart:attachment];
attachment->release();
return self;
diff --git a/src/objc/rfc822/MCOMessageBuilder.mm b/src/objc/rfc822/MCOMessageBuilder.mm
index 3531caf9..090fc99d 100644
--- a/src/objc/rfc822/MCOMessageBuilder.mm
+++ b/src/objc/rfc822/MCOMessageBuilder.mm
@@ -26,8 +26,7 @@
- (id)init
{
mailcore::MessageBuilder * message = new mailcore::MessageBuilder();
- self = [super init];
- [self setMCMessage:message];
+ self = [super initWithMCMessage:message];
MC_SAFE_RELEASE(message);
return self;
}