summaryrefslogtreecommitdiff
path: root/AK/CircularQueue.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-03 00:39:25 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-03 00:39:25 +0100
commitf6e27c2abe9da2ed1159cfc30618afc66bfbab79 (patch)
tree511a2b15828a5b431bc54a6c95d0986453d48753 /AK/CircularQueue.h
parentd824442e3e4961e6df18aeb625f645a98760ac2a (diff)
downloadserenity-f6e27c2abe9da2ed1159cfc30618afc66bfbab79.zip
More coding style changes.
Diffstat (limited to 'AK/CircularQueue.h')
-rw-r--r--AK/CircularQueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/CircularQueue.h b/AK/CircularQueue.h
index b4aec167ec..88e95e3480 100644
--- a/AK/CircularQueue.h
+++ b/AK/CircularQueue.h
@@ -14,7 +14,7 @@ public:
m_elements[i] = T();
}
- bool isEmpty() const { return !m_size; }
+ bool is_empty() const { return !m_size; }
size_t size() const { return m_size; }
size_t capacity() const { return Capacity; }
@@ -39,7 +39,7 @@ public:
T dequeue()
{
- ASSERT(!isEmpty());
+ ASSERT(!is_empty());
T value = m_elements[m_head];
m_head = (m_head + 1) % Capacity;
--m_size;