summaryrefslogtreecommitdiff
path: root/AK/Vector.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-21 02:10:45 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-21 02:10:45 +0100
commitec1c487dcd7de331d17d9c9ccc21dfbfa00dd4c8 (patch)
tree797d0ec90846ece3c658d55f1507585c85d0b91f /AK/Vector.h
parent89040cdc99d56e0a1a80b972db18d231c155ace0 (diff)
downloadserenity-ec1c487dcd7de331d17d9c9ccc21dfbfa00dd4c8.zip
Yet another pass of style fixes.
Diffstat (limited to 'AK/Vector.h')
-rw-r--r--AK/Vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Vector.h b/AK/Vector.h
index d52cea64e2..568da8ae86 100644
--- a/AK/Vector.h
+++ b/AK/Vector.h
@@ -109,7 +109,7 @@ public:
return false;
}
- bool isEmpty() const { return size() == 0; }
+ bool is_empty() const { return size() == 0; }
size_t size() const { return m_impl ? m_impl->size() : 0; }
size_t capacity() const { return m_impl ? m_impl->capacity() : 0; }
@@ -130,7 +130,7 @@ public:
T takeLast()
{
- ASSERT(!isEmpty());
+ ASSERT(!is_empty());
T value = move(last());
last().~T();
--m_impl->m_size;