summaryrefslogtreecommitdiff
path: root/Kernel/Queue.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-31 17:31:23 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-31 17:31:23 +0100
commitffab6897aa1bc668f98130b4bb485a4602509938 (patch)
treea4d1933fc390ea0803bb3826353262fbf06b885f /Kernel/Queue.h
parent27fa09aee492e6c8da9168d24f0b1d2c5d2162d5 (diff)
downloadserenity-ffab6897aa1bc668f98130b4bb485a4602509938.zip
Big, possibly complete sweep of naming changes.
Diffstat (limited to 'Kernel/Queue.h')
-rw-r--r--Kernel/Queue.h16
1 files changed, 8 insertions, 8 deletions
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");
}