diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-15 11:57:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 11:57:32 +0200 |
commit | 47d460f2b7d51be411c018b0925ea86b6fec5a7b (patch) | |
tree | 2cf39c402d6223bace22ab1fc65b808f5033212f | |
parent | f79958a30e1808b8ea71c6c051e7d41f073876fe (diff) | |
parent | cfec291978b5268bc4b9d724ffa0b762e9702130 (diff) |
Merge pull request #50474 from JFonS/fix_range_const_iterator
Fix equality operators in List's ConstIterator
-rw-r--r-- | core/templates/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/list.h b/core/templates/list.h index 6047b89670..c2e17a2f6f 100644 --- a/core/templates/list.h +++ b/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() {} |