Commit 05d203be authored by Laurent Montel's avatar Laurent Montel 😁

port some foreach

parent 01e3f426
...@@ -77,7 +77,7 @@ private Q_SLOTS: ...@@ -77,7 +77,7 @@ private Q_SLOTS:
ChangeRecorder *rec = createChangeRecorder(); ChangeRecorder *rec = createChangeRecorder();
AkonadiTest::akWaitForSignal(rec, SIGNAL(monitorReady()), 1000); AkonadiTest::akWaitForSignal(rec, SIGNAL(monitorReady()), 1000);
QVERIFY(rec->isEmpty()); QVERIFY(rec->isEmpty());
Q_FOREACH (const QString &action, actions) { for (const QString &action : qAsConst(actions)) {
qDebug() << action; qDebug() << action;
if (action == QStringLiteral("rn")) { if (action == QStringLiteral("rn")) {
replayNextAndExpectNothing(rec); replayNextAndExpectNothing(rec);
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
parent.reset(new Tag(*other.parent)); parent.reset(new Tag(*other.parent));
} }
type = other.type; type = other.type;
Q_FOREACH (Attribute *attr, other.mAttributes) { for (Attribute *attr : qAsConst(other.mAttributes)) {
mAttributes.insert(attr->type(), attr->clone()); mAttributes.insert(attr->type(), attr->clone());
} }
mDeletedAttributes = other.mDeletedAttributes; mDeletedAttributes = other.mDeletedAttributes;
......
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