From ffab6897aa1bc668f98130b4bb485a4602509938 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 31 Jan 2019 17:31:23 +0100 Subject: Big, possibly complete sweep of naming changes. --- Kernel/Queue.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Kernel/Queue.h') diff --git a/Kernel/Queue.h b/Kernel/Queue.h index 7686aed7fc..679f1fb32f 100644 --- a/Kernel/Queue.h +++ b/Kernel/Queue.h @@ -18,21 +18,21 @@ public: Queue() { } ~Queue() { - while (!isEmpty()) + while (!is_empty()) dequeue(); } - bool isEmpty() const { return !m_head; } + bool is_empty() const { return !m_head; } void enqueue(T&& item) { - auto* newNode = new Node(move(item)); + auto* new_node = new Node(move(item)); if (!m_head) { - m_head = newNode; - m_tail = newNode; + m_head = new_node; + m_tail = new_node; } else if (m_tail) { - newNode->prev = m_tail; - m_tail->next = newNode; - m_tail = newNode; + new_node->prev = m_tail; + m_tail->next = new_node; + m_tail = new_node; } dump("enqueue"); } -- cgit v1.2.3