Commit 8b7e0041 authored by Laurent Montel's avatar Laurent Montel 😁

Use for(...:...)

parent c78043ae
......@@ -83,7 +83,8 @@ void checkTestIsIsolated()
void setAllResourcesOffline()
{
// switch all resources offline to reduce interference from them
Q_FOREACH (Akonadi::AgentInstance agent, Akonadi::AgentManager::self()->instances()) { //krazy:exclude=foreach
const auto lst = Akonadi::AgentManager::self()->instances();
for (Akonadi::AgentInstance agent : lst) {
agent.setIsOnline(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