Преглед изворни кода

Merge pull request #50474 from JFonS/fix_range_const_iterator

Fix equality operators in List's ConstIterator
Rémi Verschelde пре 4 година
родитељ
комит
47d460f2b7
1 измењених фајлова са 2 додато и 2 уклоњено
  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() {}