Commit f135c22e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to for(...:...)

parent 0b7e8291
Pipeline #92800 passed with stage
in 7 minutes and 16 seconds
......@@ -107,11 +107,10 @@ void KNotesPlugin::processDropEvent(QDropEvent *event)
KContacts::Addressee::List::ConstIterator it;
QStringList attendees;
KContacts::Addressee::List::ConstIterator end(contacts.constEnd());
for (it = contacts.constBegin(); it != end; ++it) {
const QString email = (*it).fullEmail();
for (const auto &contact : std::as_const(contacts)) {
const QString email = contact.fullEmail();
if (email.isEmpty()) {
attendees.append((*it).realName() + QLatin1String("<>"));
attendees.append(contact.realName() + QLatin1String("<>"));
} else {
attendees.append(email);
}
......
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