CplusPlus: Silence clang warning

Silences a warning regarding ISO C++20 considering the
overloaded operators as ambiguous.

Change-Id: Ie27a8567899a91ab064a58694105af260addb74b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2024-06-11 08:34:33 +02:00
parent d635151c0b
commit 6cb0c69c43

View File

@@ -99,8 +99,8 @@ public:
iter = iter->next; iter = iter->next;
return *this; return *this;
} }
bool operator==(const ListIterator &other) { return iter == other.iter; } bool operator==(const ListIterator &other) const { return iter == other.iter; }
bool operator!=(const ListIterator &other) { return iter != other.iter; } bool operator!=(const ListIterator &other) const { return iter != other.iter; }
}; };
ListIterator begin() { return {this}; } ListIterator begin() { return {this}; }
ListIterator end() { return {nullptr}; } ListIterator end() { return {nullptr}; }