HackStudio: Add HackStudio::for_each_open_file

This commit is contained in:
Itamar 2021-12-03 09:38:03 +02:00 committed by Andreas Kling
commit 3e9a96f1d8
Notes: sideshowbarker 2024-07-17 23:12:52 +09:00
4 changed files with 14 additions and 0 deletions

View file

@ -1484,4 +1484,11 @@ void HackStudioWidget::open_coredump(String const& coredump_path)
}
}
void HackStudioWidget::for_each_open_file(Function<void(ProjectFile const&)> func)
{
for (auto& open_file : m_open_files) {
func(*open_file.value);
}
}
}