From cfec291978b5268bc4b9d724ffa0b762e9702130 Mon Sep 17 00:00:00 2001 From: Joan Fons Date: Thu, 15 Jul 2021 10:47:20 +0200 Subject: Fix equality operators in List's ConstIterator --- core/templates/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/templates') 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() {} -- cgit v1.2.3