From aa0ee0e4077239b112ce5387f0cea324dfb4c73e Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 22 Dec 2019 00:45:28 -0700 Subject: [PATCH] AK: InlineLinkedListIterator operator-> should return m_node directly Little typo here. Don't think many people use this iterator :) --- AK/InlineLinkedList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/InlineLinkedList.h b/AK/InlineLinkedList.h index 87962372f2..dd80b4eb1f 100644 --- a/AK/InlineLinkedList.h +++ b/AK/InlineLinkedList.h @@ -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); }