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

port some foreach

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