diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-06-21 22:23:14 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-06-21 22:23:27 -0700 |
commit | a7039a0587d56e3984e29386e42e2bb51ecd465f (patch) | |
tree | 87d82e2ccbf245dea3e9209b35d3c11afb3ae950 /src/core/rfc822/MCMessageBuilder.cc | |
parent | 6d45505840d0e156229610307202d60bd509d345 (diff) |
Removed reference to message owner from part.
Diffstat (limited to 'src/core/rfc822/MCMessageBuilder.cc')
-rw-r--r-- | src/core/rfc822/MCMessageBuilder.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/rfc822/MCMessageBuilder.cc b/src/core/rfc822/MCMessageBuilder.cc index f8fe0064..435557db 100644 --- a/src/core/rfc822/MCMessageBuilder.cc +++ b/src/core/rfc822/MCMessageBuilder.cc @@ -553,12 +553,6 @@ String * MessageBuilder::textBody() void MessageBuilder::setAttachments(Array * attachments) { - if (attachments != NULL) { - for(unsigned int i = 0 ; i < attachments->count() ; i ++) { - Attachment * attachment = (Attachment *) attachments->objectAtIndex(i); - attachment->setMessage(this); - } - } MC_SAFE_REPLACE_COPY(Array, mAttachments, attachments); } @@ -572,18 +566,11 @@ void MessageBuilder::addAttachment(Attachment * attachment) if (mAttachments == NULL) { mAttachments = new Array(); } - attachment->setMessage(this); mAttachments->addObject(attachment); } void MessageBuilder::setRelatedAttachments(Array * attachments) { - if (attachments != NULL) { - for(unsigned int i = 0 ; i < attachments->count() ; i ++) { - Attachment * attachment = (Attachment *) attachments->objectAtIndex(i); - attachment->setMessage(this); - } - } MC_SAFE_REPLACE_COPY(Array, mRelatedAttachments, attachments); } @@ -597,7 +584,6 @@ void MessageBuilder::addRelatedAttachment(Attachment * attachment) if (mRelatedAttachments == NULL) { mRelatedAttachments = new Array(); } - attachment->setMessage(this); mRelatedAttachments->addObject(attachment); } |