AK: InlineLinkedListIterator operator-> should return m_node directly

Little typo here. Don't think many people use this iterator :)
This commit is contained in:
Andrew Kaster 2019-12-22 00:45:28 -07:00 committed by Andreas Kling
parent c5c1cc817e
commit aa0ee0e407
Notes: sideshowbarker 2024-07-19 10:46:57 +09:00

View file

@ -19,7 +19,7 @@ public:
return *this;
}
T& operator*() { return *m_node; }
T* operator->() { return &m_node; }
T* operator->() { return m_node; }
bool is_end() const { return !m_node; }
static InlineLinkedListIterator universal_end() { return InlineLinkedListIterator(nullptr); }