Skip to content

Commit aa0ee0e

Browse files
ADKasterawesomekling
authored andcommitted
AK: InlineLinkedListIterator operator-> should return m_node directly
Little typo here. Don't think many people use this iterator :)
1 parent c5c1cc8 commit aa0ee0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AK/InlineLinkedList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class InlineLinkedListIterator {
1919
return *this;
2020
}
2121
T& operator*() { return *m_node; }
22-
T* operator->() { return &m_node; }
22+
T* operator->() { return m_node; }
2323
bool is_end() const { return !m_node; }
2424
static InlineLinkedListIterator universal_end() { return InlineLinkedListIterator(nullptr); }
2525

0 commit comments

Comments
 (0)