浏览代码

AK: InlineLinkedListIterator operator-> should return m_node directly

Little typo here. Don't think many people use this iterator :)
Andrew Kaster 5 年之前
父节点
当前提交
aa0ee0e407
共有 1 个文件被更改,包括 1 次插入1 次删除
  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); }