mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Kernel: Use range-for with InlineLinkedList
This commit is contained in:
parent
028e834bb4
commit
9104d32341
6 changed files with 21 additions and 21 deletions
|
@ -83,8 +83,8 @@ public:
|
|||
template<typename Callback>
|
||||
static void for_each_vmobject(Callback callback)
|
||||
{
|
||||
for (auto* vmobject = MM.m_vmobjects.head(); vmobject; vmobject = vmobject->next()) {
|
||||
if (callback(*vmobject) == IterationDecision::Break)
|
||||
for (auto& vmobject : MM.m_vmobjects) {
|
||||
if (callback(vmobject) == IterationDecision::Break)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue