소스 검색

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