diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 19:20:20 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 19:20:20 +0200 |
commit | 539985f4fefbb5dec2ae1bf20695042be7c270d0 (patch) | |
tree | de084c75b4e69a56b1b8dd99d205f9089f1151fa /AK | |
parent | b5aac9c44bee373cbb128841caae7bc8a0d3c381 (diff) | |
download | serenity-539985f4fefbb5dec2ae1bf20695042be7c270d0.zip |
HashTable: Use the Bucket type in some places over SinglyLinkedList<T>
This is just for consistency, and we might want to switch to another
bucket type some day.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/HashTable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/HashTable.h b/AK/HashTable.h index fbfc25fe3b..a8842e9458 100644 --- a/AK/HashTable.h +++ b/AK/HashTable.h @@ -139,12 +139,12 @@ public: void dump() const; - using Iterator = HashTableIterator<HashTable, T, typename SinglyLinkedList<T>::Iterator>; + using Iterator = HashTableIterator<HashTable, T, typename Bucket::Iterator>; friend Iterator; Iterator begin() { return Iterator(*this, is_empty()); } Iterator end() { return Iterator(*this, true); } - using ConstIterator = HashTableIterator<const HashTable, const T, typename SinglyLinkedList<T>::ConstIterator>; + using ConstIterator = HashTableIterator<const HashTable, const T, typename Bucket::ConstIterator>; friend ConstIterator; ConstIterator begin() const { return ConstIterator(*this, is_empty()); } ConstIterator end() const { return ConstIterator(*this, true); } |