summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VM/MemoryManager.h')
-rw-r--r--Kernel/VM/MemoryManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h
index ab8f32c194..87a9af2e83 100644
--- a/Kernel/VM/MemoryManager.h
+++ b/Kernel/VM/MemoryManager.h
@@ -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;
}
}