Commit 123b2024 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

genericprojectmanager: port foreach -> range-based for

parent cd436a04
......@@ -168,7 +168,8 @@ void TestProjectLoad::initTestCase()
qRegisterMetaType<IProject*>();
foreach(IProject* p, ICore::self()->projectController()->projects()) {
const auto projects = ICore::self()->projectController()->projects();
for (IProject* p : projects) {
ICore::self()->projectController()->closeProject(p);
}
}
......@@ -180,7 +181,8 @@ void TestProjectLoad::cleanupTestCase()
void TestProjectLoad::init()
{
foreach(IProject* p, ICore::self()->projectController()->projects()) {
const auto projects = ICore::self()->projectController()->projects();
for (IProject* p : projects) {
ICore::self()->projectController()->closeProject(p);
}
QCOMPARE(ICore::self()->projectController()->projects().size(), 0);
......
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