Browse Source

Fix equality operators in List's ConstIterator

Joan Fons 4 năm trước cách đây
mục cha
commit
cfec291978
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      core/templates/list.h

+ 2 - 2
core/templates/list.h

@@ -176,8 +176,8 @@ public:
 			return *this;
 		}
 
-		_FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; }
-		_FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; }
+		_FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; }
+		_FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; }
 
 		_FORCE_INLINE_ ConstIterator(const Element *p_E) { E = p_E; }
 		_FORCE_INLINE_ ConstIterator() {}