Commit ec8eaec6 authored by Laurent Montel's avatar Laurent Montel 😁

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

parent 98cd0c06
......@@ -71,8 +71,8 @@ Contact::Contact(const Contact &other):
KContacts::Addressee(other),
d(new Private(*(other.d)))
{
QStringList groups = custom(QStringLiteral("GCALENDAR"), QStringLiteral("groupMembershipInfo")).split(QLatin1Char(','), QString::SkipEmptyParts);
Q_FOREACH(const QString &group, groups) {
const QStringList groups = custom(QStringLiteral("GCALENDAR"), QStringLiteral("groupMembershipInfo")).split(QLatin1Char(','), QString::SkipEmptyParts);
for (const QString &group : groups) {
d->groups.insert(group, false);
}
}
......@@ -82,8 +82,8 @@ Contact::Contact(const KContacts::Addressee& other):
KContacts::Addressee(other),
d(new Private)
{
QStringList groups = custom(QStringLiteral("GCALENDAR"), QStringLiteral("groupMembershipInfo")).split(QLatin1Char(','), QString::SkipEmptyParts);
Q_FOREACH(const QString &group, groups) {
const QStringList groups = custom(QStringLiteral("GCALENDAR"), QStringLiteral("groupMembershipInfo")).split(QLatin1Char(','), QString::SkipEmptyParts);
for (const QString &group : groups) {
d->groups.insert(group, false);
}
}
......
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