summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-06 07:02:54 +0200
committerMontel Laurent <[email protected]>2017-07-06 07:02:54 +0200
commitcef0e3cabd4fce10e0f77ebcec574fb09abcf8d7 (patch)
treecc028ab91ba4e9118b7a8d8335b04cb966b3d718
parentd858a9f8db5dc52ff5fc66338f6b4ffa5d1e9504 (diff)
Other optimization
-rw-r--r--kioslave/src/smtp/transactionstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kioslave/src/smtp/transactionstate.cpp b/kioslave/src/smtp/transactionstate.cpp
index d76eb50..9577988 100644
--- a/kioslave/src/smtp/transactionstate.cpp
+++ b/kioslave/src/smtp/transactionstate.cpp
@@ -105,8 +105,8 @@ QString TransactionState::errorMessage() const
if (haveRejectedRecipients()) {
QStringList recip;
recip.reserve(mRejectedRecipients.count());
- for (RejectedRecipientList::const_iterator it = mRejectedRecipients.begin();
- it != mRejectedRecipients.end(); ++it) {
+ for (RejectedRecipientList::const_iterator it = mRejectedRecipients.begin(), end(mRejectedRecipients.end());
+ it != end; ++it) {
recip.push_back((*it).recipient + QLatin1String(" (") + (*it).reason + QLatin1Char(')'));
}
return i18n("Message sending failed since the following recipients were rejected by the server:\n"