QSet: remove misleading bool comparison with 0
Q6Hash::remove() returns a bool, not an integer, like Q5Hash::remove() did. Pick-to: 6.5 Change-Id: Ia2907c7a2a4177f9b5ad05ca1ef3b9a5baa8137a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 441a96ba16794dc8621219be705800480654e9e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit e54ece9dbb3e05ab0ec36f10b44e0f20af12a624)
This commit is contained in:
parent
1728d64f6d
commit
3accb0bc64
@ -61,7 +61,7 @@ public:
|
||||
|
||||
inline void clear() { q_hash.clear(); }
|
||||
|
||||
inline bool remove(const T &value) { return q_hash.remove(value) != 0; }
|
||||
bool remove(const T &value) { return q_hash.remove(value); }
|
||||
|
||||
template <typename Pred>
|
||||
inline qsizetype removeIf(Pred predicate)
|
||||
|
Loading…
x
Reference in New Issue
Block a user