QSet: remove misleading bool comparison with 0
Q6Hash::remove() returns a bool, not an integer, like Q5Hash::remove() did. Pick-to: 6.9 6.8 6.5 Change-Id: Ia2907c7a2a4177f9b5ad05ca1ef3b9a5baa8137a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
438c8e503d
commit
441a96ba16
@ -64,7 +64,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