Browse Source

AK: InlineLinkedListIterator operator-> should return m_node directly

Little typo here. Don't think many people use this iterator :)
Andrew Kaster 5 years ago
parent
commit
aa0ee0e407
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AK/InlineLinkedList.h

+ 1 - 1
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); }