diff options
author | Linus Groh <mail@linusgroh.de> | 2022-10-17 00:06:11 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-03 23:52:23 +0000 |
commit | d26aabff0401690d6dd1332558b40f5cb64e4428 (patch) | |
tree | fd56d0ab5b672814a1a2fb7b8a92fefb01f24e6f /AK/DoublyLinkedList.h | |
parent | 8639d8bc212dcb45aff80405b4b0f6b1ef1087e7 (diff) | |
download | serenity-d26aabff0401690d6dd1332558b40f5cb64e4428.zip |
Everywhere: Run clang-format
Diffstat (limited to 'AK/DoublyLinkedList.h')
-rw-r--r-- | AK/DoublyLinkedList.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/AK/DoublyLinkedList.h b/AK/DoublyLinkedList.h index 9789fec8b5..afe53c88b8 100644 --- a/AK/DoublyLinkedList.h +++ b/AK/DoublyLinkedList.h @@ -75,7 +75,7 @@ public: VERIFY(m_head); return m_head->value; } - [[nodiscard]] const T& first() const + [[nodiscard]] T const& first() const { VERIFY(m_head); return m_head->value; @@ -85,7 +85,7 @@ public: VERIFY(m_head); return m_tail->value; } - [[nodiscard]] const T& last() const + [[nodiscard]] T const& last() const { VERIFY(m_head); return m_tail->value; @@ -148,7 +148,7 @@ public: } #endif - [[nodiscard]] bool contains_slow(const T& value) const + [[nodiscard]] bool contains_slow(T const& value) const { return find(value) != end(); } @@ -158,17 +158,17 @@ public: Iterator begin() { return Iterator(m_head); } Iterator end() { return Iterator::universal_end(); } - using ConstIterator = DoublyLinkedListIterator<const DoublyLinkedList, const T>; + using ConstIterator = DoublyLinkedListIterator<const DoublyLinkedList, T const>; friend ConstIterator; ConstIterator begin() const { return ConstIterator(m_head); } ConstIterator end() const { return ConstIterator::universal_end(); } - ConstIterator find(const T& value) const + ConstIterator find(T const& value) const { return AK::find(begin(), end(), value); } - Iterator find(const T& value) + Iterator find(T const& value) { return AK::find(begin(), end(), value); } |