forked from qt-creator/qt-creator
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:
4
src/libs/3rdparty/cplusplus/AST.h
vendored
4
src/libs/3rdparty/cplusplus/AST.h
vendored
@@ -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}; }
|
||||||
|
Reference in New Issue
Block a user