diff options
author | Ken Grigsby <grigsby@thursby.com> | 2013-06-20 13:01:02 -0500 |
---|---|---|
committer | Ken Grigsby <grigsby@thursby.com> | 2013-06-20 13:01:02 -0500 |
commit | 5777c4023a78a7816403c449a0526ea215550f17 (patch) | |
tree | af2cbb5d79105b7f793360f1d707bae3069724d3 | |
parent | 999425a99c31f00d90644253aea6ab4a7c2f34b7 (diff) |
Remove unnecessary calls to to()->count() and cc()->count()
-rw-r--r-- | src/core/abstract/MCMessageHeader.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/abstract/MCMessageHeader.cc b/src/core/abstract/MCMessageHeader.cc index 3ac69b2b..ac792111 100644 --- a/src/core/abstract/MCMessageHeader.cc +++ b/src/core/abstract/MCMessageHeader.cc @@ -1076,7 +1076,7 @@ Array * MessageHeader::recipientWithReplyAll(bool replyAll, bool includeTo, bool Array * recipient; recipient = new Array(); - if (to() != NULL && to()->count() > 0) { + if (to() != NULL) { for(unsigned int i = 0 ; i < to()->count() ; i ++) { Address * address = (Address *) to()->objectAtIndex(i); if (addedAddresses->containsObject(address->mailbox()->lowercaseString())) { @@ -1109,7 +1109,7 @@ Array * MessageHeader::recipientWithReplyAll(bool replyAll, bool includeTo, bool if (replyAll) { recipient = new Array(); - if (cc() != NULL && cc()->count() > 0) { + if (cc() != NULL) { for(unsigned int i = 0 ; i < cc()->count() ; i ++) { Address * address = (Address *) cc()->objectAtIndex(i); if (addedAddresses->containsObject(address->mailbox()->lowercaseString())) { @@ -1157,7 +1157,7 @@ Array * MessageHeader::recipientWithReplyAll(bool replyAll, bool includeTo, bool Array * recipient; recipient = new Array(); - if (to() != NULL && to()->count() > 0) { + if (to() != NULL) { for(unsigned int i = 0 ; i < to()->count() ; i ++) { Address * address = (Address *) to()->objectAtIndex(i); if (addedAddresses->containsObject(address->mailbox()->lowercaseString())) { @@ -1169,7 +1169,7 @@ Array * MessageHeader::recipientWithReplyAll(bool replyAll, bool includeTo, bool addedAddresses->addObject(address->mailbox()->lowercaseString()); } } - if (cc() != NULL && cc()->count() > 0) { + if (cc() != NULL) { for(unsigned int i = 0 ; i < cc()->count() ; i ++) { Address * address = (Address *) cc()->objectAtIndex(i); if (addedAddresses->containsObject(address->mailbox()->lowercaseString())) { |