Bläddra i källkod

Fix equality operators in List's ConstIterator

Joan Fons 4 år sedan
förälder
incheckning
cfec291978
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      core/templates/list.h

+ 2 - 2
core/templates/list.h

@@ -176,8 +176,8 @@ public:
 			return *this;
 			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(const Element *p_E) { E = p_E; }
 		_FORCE_INLINE_ ConstIterator() {}
 		_FORCE_INLINE_ ConstIterator() {}