From 5777c4023a78a7816403c449a0526ea215550f17 Mon Sep 17 00:00:00 2001 From: Ken Grigsby Date: Thu, 20 Jun 2013 13:01:02 -0500 Subject: Remove unnecessary calls to to()->count() and cc()->count() --- src/core/abstract/MCMessageHeader.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') 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())) { -- cgit v1.2.3