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

USe for(..:..)

parent 4956d5c6
Pipeline #92795 passed with stage
in 15 minutes and 1 second
......@@ -288,10 +288,9 @@ AddrSpecList VacationEditWidget::mailAliases(bool &ok) const
void VacationEditWidget::setMailAliases(const AddrSpecList &aliases)
{
QStringList sl;
AddrSpecList::const_iterator end(aliases.constEnd());
sl.reserve(aliases.count());
for (AddrSpecList::const_iterator it = aliases.constBegin(); it != end; ++it) {
sl.push_back((*it).asString());
for (const auto &str : aliases) {
sl.push_back(str.asString());
}
mMailAliasesEdit->setText(sl.join(QLatin1String(", ")));
}
......
Supports Markdown
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