mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
HackStudio: Add HackStudio::for_each_open_file
This commit is contained in:
parent
3a44b8111b
commit
3e9a96f1d8
4 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue