summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-04 19:20:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-04 19:20:20 +0200
commit539985f4fefbb5dec2ae1bf20695042be7c270d0 (patch)
treede084c75b4e69a56b1b8dd99d205f9089f1151fa /AK
parentb5aac9c44bee373cbb128841caae7bc8a0d3c381 (diff)
downloadserenity-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.h4
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); }