summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2017-12-25 12:17:31 +0100
committerLaurent Montel <[email protected]>2017-12-25 12:17:45 +0100
commit6b27206f41d524d2cabcec42727c391521806d8b (patch)
tree6c613e64ddc9385e3d03652b118840021844bba0
parent234fa683ecc1a6e1c6b1adc93b1d2651ab30af27 (diff)
Minor optimization
-rw-r--r--kmail/editorplugins/insertemail/selectmailwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmail/editorplugins/insertemail/selectmailwidget.cpp b/kmail/editorplugins/insertemail/selectmailwidget.cpp
index 97af113..0ca814a 100644
--- a/kmail/editorplugins/insertemail/selectmailwidget.cpp
+++ b/kmail/editorplugins/insertemail/selectmailwidget.cpp
@@ -47,9 +47,9 @@ SelectMailWidget::~SelectMailWidget()
QStringList SelectMailWidget::selectedEmails() const
{
QStringList lst;
+ lst.reserve(mView->selectedAddresses().count());
for (const Akonadi::EmailAddressSelection &selection : mView->selectedAddresses()) {
lst.append(selection.email());
}
-
return lst;
}