Commit 92a208aa authored by Laurent Montel's avatar Laurent Montel 😁

Reserve elements

parent 9e7c596d
......@@ -131,6 +131,7 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
QStringList values;
const KContacts::PhoneNumber::List numbers = contact.phoneNumbers();
values.reserve(numbers.count());
for (const KContacts::PhoneNumber &number : numbers) {
values += number.number();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment